fix(ui-core-components): dismiss non-modal popovers outside#30358
fix(ui-core-components): dismiss non-modal popovers outside#30358shah-harshit wants to merge 2 commits into
Conversation
Code Review ✅ Approved 2 resolved / 2 findingsImplements opt-in outside-interaction dismissal for non-modal select popovers while preserving Safari-safe styling. Resolves potential issues with the unused onOpenChange callback and redundant trigger-click dismissal events. ✅ 2 resolved✅ Bug: Dismissal relies on onOpenChange, unused by consumers
✅ Edge Case: Trigger click can fire dismissal alongside trigger toggle
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes
Adds opt-in outside-interaction dismissal for non-modal core select popovers. The behavior honors
shouldCloseOnInteractOutsidefilters and preserves the existing Safari-safe outline styling from currentmain.Type of change
Tests
Use cases covered
Verification performed
tsc --noEmit)vite build)git diff --checkUnit tests
Not added: the core-components package does not currently expose a unit-test runner.
Backend integration tests
Ingestion integration tests
Playwright tests
UI screen recording / screenshots
Not applicable — this changes dismissal behavior without changing visuals.
Checklist
mainstyling.Greptile Summary
This PR adds opt-in outside dismissal for non-modal select popovers. The main changes are:
Confidence Score: 5/5
This looks safe to merge.
overlayState.close().onOpenChange.Important Files Changed
Reviews (2): Last reviewed commit: "fix(ui-core-components): close context-o..." | Re-trigger Greptile
Context used (3)