When cells are merged in a table, pressing Ctrl+A does not select all cells within the table. Instead, only a subset of cells are selected, breaking the expected selection behavior for table content.
Lexical version: 0.39.0
Steps To Reproduce
- Insert a table into the editor.
- Remove all other nodes from the editor, leaving only the table.
- Merge two cells in the last column.
- Place the cursor inside any cell of the table.
- Press
Ctrl+A.
Link to code example:
https://playground.lexical.dev
Video:
https://github.com/user-attachments/assets/1b57c791-df24-4244-ad27-c75c576cdc59
The current behavior
Ctrl+A fails to select all cells when the table contains merged cells and is the only element in the editor.
The expected behavior
Ctrl+A should select all cells within the table.