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

Crash when last node delete #4771

Open
gingray opened this issue Jan 6, 2022 · 0 comments · May be fixed by #5407
Open

Crash when last node delete #4771

gingray opened this issue Jan 6, 2022 · 0 comments · May be fixed by #5407
Labels

Comments

@gingray
Copy link

gingray commented Jan 6, 2022

Description
When click on element which responsible to delete node crash happen with error message Cannot find a descendant at path only happen when delete last node

Sandbox
https://codesandbox.io/s/slate-node-remove-bug-3qw26?file=/src/editor/index.js

Steps
To reproduce the behavior:

  1. Click on trash icon

Expectation
No crash

Environment

  • Slate Version: [e.g. 0.72.3]
  • Operating System: [MacOS]
  • Browser: [Chrome, Safari]

Context
I think it can be related to this issue #4616 because fix with timeout works in case I described

@gingray gingray added the bug label Jan 6, 2022
@zbeyens zbeyens linked a pull request Apr 27, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant