Skip to content

Fix onPointerDownOutside event issues 🔥 #654

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

Merged
merged 6 commits into from
May 20, 2021

Conversation

benoitgrelard
Copy link
Contributor

@benoitgrelard benoitgrelard commented May 18, 2021

Fix #646

This is a prequel to the modality changes as I bumped into that issue first hand when trying to make a dialog non-modal trying to focus something outside it by calling event.preventDefault in onInteractOutside.

Note

🔥 This change affects the event signature of onPointerDownOutside and/or onInteractOutside for the given components and therefore will need docs updates:

  • AlertDialog
  • ContextMenu
  • Dialog
  • DropdownMenu
  • Popover

@benoitgrelard benoitgrelard requested a review from jjenzz as a code owner May 18, 2021 20:41
@benoitgrelard benoitgrelard changed the title Fix onPointerDownOutside event issues Fix onPointerDownOutside event issues 🔥 May 18, 2021
@benoitgrelard benoitgrelard merged commit e4c64b3 into main May 20, 2021
@benoitgrelard benoitgrelard deleted the 646-fix-on-interact-outside branch May 20, 2021 09:19
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.

[Popover] using event.preventDefault within onInteractOutside prevents focus
2 participants