Skip to content

Conversation

devongovett
Copy link
Member

Fixes #6048, fixes #8188

When putting a button inside a popover within a component that sets the context outside (e.g. Select, ComboBox, etc.) it gets the wrong attributes. Same for some other components like Label and Input.

This passes the contexts to clear down to Popover, which wraps its children in providers that set the value to null. This way we don't have to hard code the contexts to clear within Popover.

@rspbot
Copy link

rspbot commented May 29, 2025

Build successful! 🎉

Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convenient and simple, I like it

Copy link
Member

@reidbarber reidbarber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@devongovett devongovett added this pull request to the merge queue May 29, 2025
Merged via the queue into main with commit bb79a9c May 29, 2025
30 checks passed
@devongovett devongovett deleted the popover-clear-contexts branch May 29, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants