lexical
lexical copied to clipboard
Bug: Deleting a table row causes a crash
Description
Deleting the last table row causes the following crash inside $deleteTableRow_EXPERIMENTAL:
main.788dd689.js:21 Uncaught Error: Expected GridNode childAtIndex(5) to be RowNode
at jj.$deleteTableRow__EXPERIMENTAL (main.788dd689.js:21:426261)
at main.788dd689.js:21:1208697
at eh (main.788dd689.js:21:189961)
at th (main.788dd689.js:21:192102)
at Dh.update (main.788dd689.js:21:213346)
at main.788dd689.js:21:1208684
at onClick (main.788dd689.js:21:1211094)
at Object.Ct (main.788dd689.js:21:16658)
at Ot (main.788dd689.js:21:16812)
at main.788dd689.js:21:36721
Lexical version: Latest
Steps To Reproduce
- Visit the Lexical Playground app
- Insert a 5x5 table(not the experimental)
- Try to delete the first cell of the last row
I am not able to reproduce the issue
https://user-images.githubusercontent.com/2174170/230070779-efe130fd-62fa-4a73-9df7-d3393466e5f6.mov
I am not able to reproduce the issue
The issue is with the non-experimental table