plate icon indicating copy to clipboard operation
plate copied to clipboard

Pressing down arrow at the last line moves caret to the end of line (Firefox only)

Open the21st opened this issue 2 years ago • 2 comments

Description

I'm looking at this example: https://codesandbox.io/s/plate-playground-2mh1c - it's plate with many plugins enabled, all of them official.

When in Chrome, pressing down arrow repeatedly behaves correctly. But in Firefox, once I hit the last line of a text paragraph, when I press down arrow there, the caret is moved to the end of line instead of to the next node.

Steps

video:

https://user-images.githubusercontent.com/4610874/174054179-55a9e2ee-a9e9-4972-a00d-bf7c5e743903.mp4

  1. Open Firefox
  2. Go to https://codesandbox.io/s/plate-playground-2mh1c
  3. Click on a multi-line text node
  4. Keep pressing down arrow until you're on its last line
  5. Press down arrow again
  6. The caret moves to the end of current line instead of to the next line in the next node

Sandbox

https://codesandbox.io/s/plate-playground-2mh1c

Expectation

The caret should move to the next line of text (which belongs to the next node).

Environment

  • slate: whatever is in the sandbox today
  • slate-react: whatever is in the sandbox today
  • browser: firefox

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

the21st avatar Jun 16 '22 10:06 the21st

Is it happening in slate examples?

zbeyens avatar Jun 16 '22 15:06 zbeyens

@zbeyens it's not happening in slate examples.

I'm sorry for replying so late, the notification got lost in my inbox.

the21st avatar Jul 13 '22 11:07 the21st