diff --git a/src/component/handlers/edit/editOnBlur.js b/src/component/handlers/edit/editOnBlur.js index 36e31cca3c..d96d751886 100644 --- a/src/component/handlers/edit/editOnBlur.js +++ b/src/component/handlers/edit/editOnBlur.js @@ -31,7 +31,7 @@ function editOnBlur(editor: DraftEditor, e: SyntheticEvent<>): void { // opposed to clicking to another tab or window). if (getActiveElement() === document.body) { const selection = global.getSelection(); - const editorNode = editor.refs.editor; + const editorNode = editor.editor; if ( selection.rangeCount === 1 && containsNode(editorNode, selection.anchorNode) &&