lexical 0.29.1-nightly.20250327.0 → 0.29.1-nightly.20250331.0

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/Lexical.dev.js CHANGED
@@ -10219,7 +10219,9 @@ class LexicalEditor {
10219
10219
  const root = $getRoot();
10220
10220
  if (selection !== null) {
10221
10221
  // Marking the selection dirty will force the selection back to it
10222
- selection.dirty = true;
10222
+ if (!selection.dirty) {
10223
+ $setSelection(selection.clone());
10224
+ }
10223
10225
  } else if (root.getChildrenSize() !== 0) {
10224
10226
  if (options.defaultSelection === 'rootStart') {
10225
10227
  root.selectStart();
@@ -10289,7 +10291,7 @@ class LexicalEditor {
10289
10291
  };
10290
10292
  }
10291
10293
  }
10292
- LexicalEditor.version = "0.29.1-nightly.20250327.0+dev.cjs";
10294
+ LexicalEditor.version = "0.29.1-nightly.20250331.0+dev.cjs";
10293
10295
 
10294
10296
  let keyCounter = 1;
10295
10297
  function resetRandomKey() {
package/Lexical.dev.mjs CHANGED
@@ -10217,7 +10217,9 @@ class LexicalEditor {
10217
10217
  const root = $getRoot();
10218
10218
  if (selection !== null) {
10219
10219
  // Marking the selection dirty will force the selection back to it
10220
- selection.dirty = true;
10220
+ if (!selection.dirty) {
10221
+ $setSelection(selection.clone());
10222
+ }
10221
10223
  } else if (root.getChildrenSize() !== 0) {
10222
10224
  if (options.defaultSelection === 'rootStart') {
10223
10225
  root.selectStart();
@@ -10287,7 +10289,7 @@ class LexicalEditor {
10287
10289
  };
10288
10290
  }
10289
10291
  }
10290
- LexicalEditor.version = "0.29.1-nightly.20250327.0+dev.esm";
10292
+ LexicalEditor.version = "0.29.1-nightly.20250331.0+dev.esm";
10291
10293
 
10292
10294
  let keyCounter = 1;
10293
10295
  function resetRandomKey() {