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

[SuperEditor] Don't restore selection on refocus if selection nodes disappeared from document #1074

Closed
kpsroka opened this issue Mar 27, 2023 · 0 comments · Fixed by #1103
Closed
Assignees
Labels
bounty_junior f:superlist Funded by Superlist

Comments

@kpsroka
Copy link

kpsroka commented Mar 27, 2023

I have the following use case:

  1. I have several nodes in a document,
  2. I select some of the nodes,
  3. I open a menu that takes focus from SuperEditor, and use a menu item to remove the selected nodes.
  4. The menu closes and focus goes back to SuperEditor.

Expected outcome:

  • The editor is focused with no selection 👍 .

Actual outcome:

  • The editor crashes 💥 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty_junior f:superlist Funded by Superlist
Projects
None yet
3 participants