plate
plate copied to clipboard
Pressing down arrow at the last line moves caret to the end of line (Firefox only)
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
- Open Firefox
- Go to https://codesandbox.io/s/plate-playground-2mh1c
- Click on a multi-line text node
- Keep pressing down arrow until you're on its last line
- Press down arrow again
- 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
Is it happening in slate examples?
@zbeyens it's not happening in slate examples.
I'm sorry for replying so late, the notification got lost in my inbox.