-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Delete backward is replacing the previous node by the current node #3408
Comments
This is due to this code in
You can see this more clearly exemplified in the table example where, if you clear the content of the final cell, then press backspace at the start of the next paragraph, it removes the cell: |
To provide even more information, the code I referenced above removes the lowest empty block you're deleting into. What this means is that as long as you have paragraphs within these nodes, the paragraph will be deleted (great!) and not the empty block containing it. This is a gotcha, but it may not be a bug. |
Hi @pottedmeat |
Do you want to request a feature or report a bug?
Bug
What's the current behavior?
li
(with empty text) is replaced by ap
ondeleteBackward
.Workaround until it's fixed:
Slate: 0.57.1
Browser: Chrome / Safari / Firefox / Edge
OS: Mac / Windows / Linux / iOS / Android
What's the expected behavior?
It should not replace the node
The text was updated successfully, but these errors were encountered: