Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android delete forward at end of block causes selection to jump #5730

Open
lawrencesin opened this issue Sep 26, 2024 · 0 comments
Open

Android delete forward at end of block causes selection to jump #5730

lawrencesin opened this issue Sep 26, 2024 · 0 comments

Comments

@lawrencesin
Copy link

Description
When you are at the end of a block and hit the DEL key to trigger a deleteForward, the cursor jumps to the next block, deletes a character, then jumps back to the end of the block. it deletes the first character on the next block but leaves that block intact; it takes another key press on the delete key to merge the blocks.

Recording
Android Delete Forward

Sandbox
https://www.slatejs.org/examples/richtext

Steps
To reproduce the behavior:

  1. On an Android device
  2. Go to https://www.slatejs.org/examples/richtext
  3. Tap on the end of any block, that has a following block with content.
  4. Press the DEL key once
  5. Notice the first character of the next block is deleted, but they aren't merged

Expectation
The first character of the following block should be deleted and the two blocks should be merged into one.

Environment

  • Slate Version: 0.110.1
  • Operating System: Android
  • Browser: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant