plate icon indicating copy to clipboard operation
plate copied to clipboard

Cursor can be placed inside table node but not in a cell

Open OliverWales opened this issue 1 year ago • 3 comments

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

  1. Click on the space beneath a table node and before the next node
  2. Type something
  3. Try and select what you typed
  4. 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

P-174

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

OliverWales avatar Dec 08 '22 17:12 OliverWales

Looks to be fixed in https://platejs.org/

zbeyens avatar Jul 07 '23 15:07 zbeyens

@zbeyens seems to still be a bit of an issue:

https://github.com/udecode/plate/assets/33153339/ce5aa2ad-5b5e-4240-a8dd-dfb92dba0011

OliverWales avatar Jul 07 '23 15:07 OliverWales

Thanks for the video, got a hard time to reproduce it 😅

zbeyens avatar Jul 07 '23 16:07 zbeyens