Skip to content

Conversation

mathildebm
Copy link

@mathildebm mathildebm commented Sep 29, 2025

This PR addresses an issue where a popover remains open when clicking outside, if the click event originates from an element inside the popover that has stopPropagation applied.

This commit change the click event listener on the document to be triggered in the capture phase, and removes the click listener on the content div. It ensures the popover to close correctly regardless of whether elements stop event propagation

Fix #8147

@mathildebm mathildebm changed the title fix: handle popover outside click by removing content click and restoring document capture listeners #8147 fix: handle popover outside click by removing content click and restoring document capture listeners Sep 29, 2025
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: Clicking outside does not close popover if element stops propagation

1 participant