lexical icon indicating copy to clipboard operation
lexical copied to clipboard

removeFromParent doesn't readjust selection

Open zurfyx opened this issue 1 month ago • 0 comments

Functions like removeNode have had restoreSelection built-in for years now. removeFromParent or their callers should do the same.

Currently, you can call insertBefore, trigger a node removal and the selection won't be recomputed which can lead to an invalid selection, see the referenced PR.

zurfyx avatar May 05 '24 18:05 zurfyx