@baasix/lexical 0.0.7 → 0.0.9

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
@@ -15971,13 +15971,17 @@ function HtmlPlugin({
15971
15971
  FOCUS_COMMAND2,
15972
15972
  () => {
15973
15973
  if (editor.getEditorState()._selection === null) {
15974
- editor.update(() => {
15975
- const root = $getRoot3();
15976
- const firstChild = root.getFirstChild();
15977
- if (firstChild) {
15978
- firstChild.selectStart();
15974
+ Promise.resolve().then(() => {
15975
+ if (editor.getEditorState()._selection === null) {
15976
+ editor.update(() => {
15977
+ const root = $getRoot3();
15978
+ const firstChild = root.getFirstChild();
15979
+ if (firstChild) {
15980
+ firstChild.selectStart();
15981
+ }
15982
+ });
15979
15983
  }
15980
- }, { discrete: true });
15984
+ });
15981
15985
  }
15982
15986
  return false;
15983
15987
  },