plate
plate copied to clipboard
Cursor can be placed inside table node but not in a cell
Description
The cursor can be focused at the end of a Table
node. Typing causes one character to be placed after the node but before the next, and further characters are added to the last cell. Trying to focus the character added after the table causes a slate error.
For example, on https://plate.udecode.io/docs/playground:
https://user-images.githubusercontent.com/33153339/206514872-9c78f8cc-e19e-4b48-847e-20f7aa4678af.mov
Steps
- Click on the space beneath a table node and before the next node
- Type something
- Try and select what you typed
- Slate crashes
Expectation
You should not be able to focus the cursor in a table but outside of a cell.
Environment
Reproducible here https://plate.udecode.io/docs/playground on Chrome on MacOS
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
Looks to be fixed in https://platejs.org/
@zbeyens seems to still be a bit of an issue:
https://github.com/udecode/plate/assets/33153339/ce5aa2ad-5b5e-4240-a8dd-dfb92dba0011
Thanks for the video, got a hard time to reproduce it 😅