slate-react 0.101.5 → 0.101.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin/react-editor.d.ts.map +1 -1
- package/dist/slate-react.js +3 -1
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -547,10 +547,12 @@ var ReactEditor = {
|
|
|
547
547
|
Transforms.select(editor, Editor.start(editor, []));
|
|
548
548
|
editor.onChange();
|
|
549
549
|
}
|
|
550
|
+
// IS_FOCUSED should be set before calling el.focus() to ensure that
|
|
551
|
+
// FocusedContext is updated to the correct value
|
|
552
|
+
IS_FOCUSED.set(editor, true);
|
|
550
553
|
el.focus({
|
|
551
554
|
preventScroll: true
|
|
552
555
|
});
|
|
553
|
-
IS_FOCUSED.set(editor, true);
|
|
554
556
|
}
|
|
555
557
|
},
|
|
556
558
|
getWindow: editor => {
|