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

Pressing undo after pressing enter between a marked span(like bold) and normal text removes the normal text completely. #5572

Open
KANE-99 opened this issue Nov 30, 2023 · 0 comments
Labels

Comments

@KANE-99
Copy link

KANE-99 commented Nov 30, 2023

Description
Pressing undo after pressing enter between a marked span(like bold) and normal text removes the normal text completely.

Recording

Screen.Recording.2023-11-30.at.3.59.20.PM.mov

Sandbox
It can be reproduced on the official site https://www.slatejs.org/

Steps
To reproduce the behavior:

  1. Go to slate editor
  2. Enable bold and start entering some text.
  3. Disable bold and enter space and then enter some text.
  4. Bring the cursor back to the end of previous bold text and press Enter.
  5. Press undo to see the second text getting removed completely instead of going back to same paragraph as before.

Expectation
Pressing undo should make the second text go back to same paragraph.

Environment

  • Slate Version: latest
  • Operating System: macOs Sonoma 14.1.1
  • Browser: Chrome
@KANE-99 KANE-99 added the bug label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant