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

Delete the last words in the nested block will cause error issue #21

Open
ryuever opened this issue Aug 23, 2020 · 0 comments
Open

Delete the last words in the nested block will cause error issue #21

ryuever opened this issue Aug 23, 2020 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation nested block

Comments

@ryuever
Copy link
Owner

ryuever commented Aug 23, 2020

when backspace from the start of a nested block, delete parent instead of child.

removeRangeFromContentState do this work, but it has a bug. Because the parent does not tear down completely, then it will make the grandparent has a non-exist block. The detail please refer to facebookarchive/draft-js#2571

@ryuever ryuever added bug Something isn't working nested block documentation Improvements or additions to documentation labels Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation nested block
Projects
None yet
Development

No branches or pull requests

1 participant