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

on Chrome, shift-arrow down then delete doesn't delete text #4496

Closed
jaked opened this issue Sep 8, 2021 · 1 comment
Closed

on Chrome, shift-arrow down then delete doesn't delete text #4496

jaked opened this issue Sep 8, 2021 · 1 comment

Comments

@jaked
Copy link
Contributor

jaked commented Sep 8, 2021

Description
If you position the cursor at the beginning of a paragraph, shift-arrow down, then press delete, the text should be deleted. On HEAD on Chrome, instead the cursor moves to the previous line and the text is not deleted.

I bisected the issue to 2d1aaafa from #4455. Not sure what the problem is. I see that the change affects Chrome only, and I tested on Safari; the bug is not present.

Recording
Bug at 2d1aaafa :

Bug

Correct behavior at previous commit 8eb1abac :

Correct

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

Steps
To reproduce the behavior:

  1. position the cursor at the beginning of a paragraph
  2. shift-arrow down to select paragraph
  3. press delete
  4. see that the cursor moves to the previous line and the text is not deleted

Expectation
Text should be deleted.

Environment

  • Slate Version: HEAD
  • Operating System: MacOS
  • Browser: Chrome 93.0.4577.63
@TheSpyder
Copy link
Collaborator

Duplicate of #4492

@TheSpyder TheSpyder marked this as a duplicate of #4492 Sep 8, 2021
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

2 participants