-
Notifications
You must be signed in to change notification settings - Fork 982
[Popover] Restore checkForDefaultPrevented
#764
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
Conversation
}, | ||
{ checkForDefaultPrevented: false } | ||
)} | ||
onInteractOutside={composeEventHandlers( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This differs in that it covers the focus where before we didn't need to, not sure if that makes much difference where this is concerned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to bring them back into the modality branch for Dialog
too? I have a feeling I might have taken them out.
If you did then it wasn't anytime recently, nothing in the modality diff nor recent history that I can see. They are missing in |
I guess the idea is to not change the current behaviour so I'd say leave it as is then. |
) * [FocusScope] Update API for modality changes (#698) * [FocusScope] Update API for modality changes * Address PR feedback * PR feedback * [Dialog] Add support for non-modal dialogs (#699) * [Dialog] Add support for non-modal dialogs * PR feedback * [Dialog] Fix non modal toggle on close (#757) * [AlertDialog] Explicit modality, prevent pointer dismiss (#758) * [AlertDialog] Don't compose onPointerDownOutside (#759) * [AlertDialog] Don't compose onPointerDownOutside * Code style * [Popover] Add support for modality (#751) * [Popover] Add support for modality * Modality scroll behaviour, default to non modal * Adjust for focus close in chromatic stories * Fix toggle when closing non modal * [Dialog][Popover] Update interact description * [Popover] Restore `checkForDefaultPrevented` (#764) * [DropdownMenu][ContextMenu] Add modality support (#768) * [Menu] Support modality * [DropdownMenu] Expose modality * [ContextMenu] Expose modality * [DropdownMenu] `mouseDown` -> `pointerDown` * [Menu] disableOutsidePointerEvents only when open * [DropdownMenu][Popover][Dialog] Apply explicit trigger auto focus (#771) * Explicit trigger focus * Simplify handling where possible * Code style, remove redundant check * [Popover] Revert `onEscapeKeyDown` default check * Versions * [Dialog][Popover][DropdownMenu][ContextMenu] Adjust non-modal auto focus behaviour (#799) * Adjust non-modal auto focus behaviour * Code style * Explicitly handle ref clearing * Refine ref clearing * Simplify handler composition in non-modal * Feedback * Revert auto focus cancellation * Improve focus handling readability * [ContextMenu] Adjust non-modal focus handling * [ContextMenu][Dialog][DropdownMenu][ContextMenu] Adjust ref naming (#805) * Adjust ref naming * [ContextMenu] Move modal condition Co-authored-by: Andy Hook <[email protected]>
We'll be discussing the use of these composition utils (and this option) separately, however for now it's best to restore these to match the existing behaviour.