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.js CHANGED
@@ -760,10 +760,12 @@ var ReactEditor = {
760
760
  slate.Transforms.select(editor, slate.Editor.start(editor, []));
761
761
  editor.onChange();
762
762
  }
763
+ // IS_FOCUSED should be set before calling el.focus() to ensure that
764
+ // FocusedContext is updated to the correct value
765
+ IS_FOCUSED.set(editor, true);
763
766
  el.focus({
764
767
  preventScroll: true
765
768
  });
766
- IS_FOCUSED.set(editor, true);
767
769
  }
768
770
  },
769
771
  getWindow: function getWindow(editor) {