Closed mdmahendri closed 2 weeks ago
I think it's expected behavior to get errors when you make modifications to the internals of a library without really understanding what's going on. If you can demonstrate some unexpected behavior when using the unmodified library in a normal way then you should open a new issue.
ah yes! thank you for swift response, i forgot that spliceText
is not exclusively for deleting text/char
Lexical version: v0.19.0+git
Steps To Reproduce
LexicalSelection.ts
fromfirstNode.spliceText(firstPoint.offset, del, '', true);
tofirstNode.spliceText(firstPoint.offset, del, '', false); //changing moveSelection=false
insert code block
Link to code example: this bug is easy to reproduce using clone of the git
The current behavior
changing the value of
moveSelection
throws errorThe expected behavior
I am new to lexical, i do not have any information when or where
moveSelection
is importantImpact of fix
It will be important to fix if someone decided to make their custom
LexicalSelection.ts
orLexicalTextNode.ts