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

Fix link bubble menu state when clicking out or changing selection #46

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

sjdemartini
Copy link
Owner

This avoids a focus-jump when clicking away from the "Edit" form, by ensuring the bubble menu state is kept in sync. An extra precautionary fallback to ?? "" is added for the currentHref just in case the menu renders when unexpected and no href is available, since this can cause a crash (though that scenario is likely resolved by our more deliberate menu-closing, and handled here just as a defensive precaution).

This avoids a focus-jump when clicking away from the "Edit" form, by
ensuring the bubble menu state is kept in sync. An extra precautionary
fallback to `?? ""` is added for the `currentHref` just in case the menu
renders when unexpected and no `href` is available, since this can cause
a crash (though that scenario is likely resolved by our more deliberate
menu-closing, and handled here just as a defensive precaution).
@sjdemartini sjdemartini force-pushed the fix-link-menu-clickaway branch from 87390b9 to 5a29ae1 Compare June 16, 2023 18:36
@sjdemartini sjdemartini merged commit 14705af into main Jun 16, 2023
@sjdemartini sjdemartini deleted the fix-link-menu-clickaway branch June 16, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant