Skip to content

fix(Calendar): prevent the parent popover closing#1204

Merged
tenphi merged 1 commit into
mainfrom
fix-popover-buttons
Jun 10, 2026
Merged

fix(Calendar): prevent the parent popover closing#1204
tenphi merged 1 commit into
mainfrom
fix-popover-buttons

Conversation

@tenphi

@tenphi tenphi commented Jun 10, 2026

Copy link
Copy Markdown
Member

Note

Low Risk
Localized popover-dismiss opt-out on calendar UI plus tests and story tweaks; no auth, data, or API changes.

Overview
Fixes DatePicker (and range pickers) so the calendar popover no longer closes when users click previous/next month—those interactions were incorrectly treated like dismiss-on-press.

The fix marks the shared Calendar and RangeCalendar root elements with data-popover-keep, so month navigation buttons inside the calendar opt out of the library’s “button press closes parent popover” behavior. Choosing a date still closes the popover (covered by new DatePicker tests). FilterPicker story examples also add data-popover-keep on header/footer action buttons to match the same pattern. Patch changeset for @cube-dev/ui-kit.

Reviewed by Cursor Bugbot for commit 9d097e4. 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 10, 2026 10:01am

Request Review

@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9d097e4

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

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions

Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-2d72c7b.

@github-actions

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 396.77 KB (+0.01% 🔺) Yes 🎉
Tree shaking (just a Button) 113.45 KB (0% 🟰) Yes 🎉

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

@tenphi tenphi merged commit 1bfb2cb into main Jun 10, 2026
15 checks passed
@tenphi tenphi deleted the fix-popover-buttons branch June 10, 2026 10:06
@github-actions github-actions Bot mentioned this pull request Jun 10, 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