lexical
lexical copied to clipboard
Bug: table can't be copied when only table is present
Lexical version: 0.16.1
A table doesn't get copied to the clipboard when there is only one table as content.
Steps To Reproduce
- Visit https://playground.lexical.dev/
- Insert a table using the
Insertdropdown. - Delete the paragraph nodes, above and below the table.
- Press
Cmd+Ato select the table. - Press
Cmd+Cto copy the table. - Press
Backspaceto delete the table. - Press
Cmd+Vto trigger the paste action.
Expected: I should see a table on the editor. Actual: I see random text pasted from the clipboard that I had copied before.
https://github.com/user-attachments/assets/9c0e1447-2fb2-428a-a478-6b08927e0fbd