Skip to content

fix(Calendar): prevent the parent popover closing * 2#1207

Merged
tenphi merged 3 commits into
mainfrom
fix-popover-buttons-2
Jun 11, 2026
Merged

fix(Calendar): prevent the parent popover closing * 2#1207
tenphi merged 3 commits into
mainfrom
fix-popover-buttons-2

Conversation

@tenphi

@tenphi tenphi commented Jun 10, 2026

Copy link
Copy Markdown
Member

Note

Low Risk
Localized popover dismiss predicate and calendar DOM attributes; behavior change is intentional for calendar/nested popover UX with regression tests.

Overview
Fixes Calendar popover behavior when navigating months or picking dates inside nested popovers (e.g. DatePicker inside a parent DialogTrigger).

data-popover-keep is applied only on interactive calendar controls — prev/next month buttons and date cells — instead of the whole calendar root. useOverlay “interact outside” handlers in DialogTrigger, MenuTrigger, SubMenuTrigger, Select, and ComboBox now treat clicks on [data-popover-keep] like in-overlay interactions and do not dismiss the overlay.

Adds a DatePicker test that month navigation with two open dialogs leaves both popovers open.

Reviewed by Cursor Bugbot for commit c052039. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Jun 11, 2026 9:57am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c052039

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-dbd49fb.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 397.46 KB (+0.02% 🔺) Yes 🎉
Tree shaking (just a Button) 113.47 KB (+0.02% 🔺) Yes 🎉

Click here if you want to find out what is changed in this build

@tenphi tenphi merged commit bea79e7 into main Jun 11, 2026
16 checks passed
@tenphi tenphi deleted the fix-popover-buttons-2 branch June 11, 2026 10:01
@github-actions github-actions Bot mentioned this pull request Jun 11, 2026
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.

1 participant