mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 09:43:58 +02:00
update error message
This commit is contained in:
@@ -10,7 +10,7 @@ function findDOMNode(node) {
|
|||||||
const el = window.document.querySelector(`[data-key="${node.key}"]`)
|
const el = window.document.querySelector(`[data-key="${node.key}"]`)
|
||||||
|
|
||||||
if (!el) {
|
if (!el) {
|
||||||
throw new Error(`Unable to find a dom node for "${node.key}". This is
|
throw new Error(`Unable to find a DOM node for "${node.key}". This is
|
||||||
often because of forgetting to add \`props.attributes\` to a component
|
often because of forgetting to add \`props.attributes\` to a component
|
||||||
returned from \`renderNode\`.`)
|
returned from \`renderNode\`.`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user