lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Crash when resize a table cell in a table with merged cells

Open Jianxq12 opened this issue 3 years ago • 1 comments

Lexical version: 0.10.0

Steps To Reproduce

  1. Create a 5x5 table (not the experimental) in the Lexical Playground.
  2. Merge two cells
  3. move this mouse cursor to the end cell line of the table
  4. try to resize this last column of the table

it will caught error, then a blue line will always follow this mouse cursor, it can't disappeared. after, unable to input anything in the editor.

caught error:

caught Error: Expected table cell to be inside of table row. at main.0714caa5.js:21:1223100 at eh (main.0714caa5.js:21:189954) at th (main.0714caa5.js:21:192095) at Dh.update (main.0714caa5.js:21:213339) at main.0714caa5.js:21:1222815 at main.0714caa5.js:21:1223660 at Object.Ct (main.0714caa5.js:21:16658) at Ot (main.0714caa5.js:21:16812) at main.0714caa5.js:21:36721 at To (main.0714caa5.js:21:36815)

The current behavior

image image

Link to code example:

The expected behavior

after merged cells, can resize table column and input something normally.

Jianxq12 avatar Apr 26 '23 13:04 Jianxq12

With landed commit above, issue should be resolved now.

icrosil avatar Oct 19 '23 09:10 icrosil