We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6c7b3 commit 38d5dbdCopy full SHA for 38d5dbd
packages/lexical/src/LexicalUpdates.ts
@@ -623,7 +623,10 @@ export function $commitPendingUpdates(
623
editor._editable &&
624
// domSelection will be null in headless
625
domSelection !== null &&
626
- (needsUpdate || pendingSelection === null || pendingSelection.dirty) &&
+ (needsUpdate ||
627
+ pendingSelection === null ||
628
+ pendingSelection.dirty ||
629
+ !pendingSelection.is(currentSelection)) &&
630
rootElement !== null &&
631
!tags.has(SKIP_DOM_SELECTION_TAG)
632
) {
0 commit comments