fix(popover): keep popover open when selecting a date from datepicker#21705
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21705 +/- ##
==========================================
+ Coverage 94.62% 95.03% +0.41%
==========================================
Files 535 538 +3
Lines 43637 45052 +1415
Branches 6209 6542 +333
==========================================
+ Hits 41291 42815 +1524
+ Misses 2212 2108 -104
+ Partials 134 129 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@adamalston i have updated it, please check it out! |
sangeethababu9223
left a comment
There was a problem hiding this comment.
Hey @nehaaprasad ,
Please update the PR description to match the standard PR template.
Also ci check for format is failing, you could solve it by running yarn format in local and pushing the changes to the PR.
|
Hey @sangeethababu9223, @devadula-nandan and @adamalston , when you have a moment, could you take a look at this PR? I’ve updated the remaining items. |
64861d9
…carbon-design-system#21705) * fix(popover): keep popover open when selecting a date from DatePicker * fix(popover): keep popover open when selecting a date from DatePicker * chore(popover): replace _flatpickr cast with safe narrowing * fix(popover): remove unnecessary optional chaining and add TODO comment --------- Co-authored-by: Sangeetha Babu <sangeetha9223@gmail.com> Co-authored-by: “heloiselui” <helolui27@gmail.com>
Closes #21690
Fix
Popoverso selecting a date from aDatePickerrendered indocument.bodydoes not triggeronRequestClosewhen that calendar belongs to an input inside the popover.Changelog
New
Popover, including click and focusout behavior.Changed
Popoverclose logic to ignore outside click/focus transitions when the target is a.flatpickr-calendarassociated with an input inside the current popover._flatpickrlookup in Popover internals.Removed
NoneTesting / Reviewing
[ ] Open Popover with DatePicker inside
[ ] Open calendar and select a date
[ ] Confirm Popover stays open
[ ] Confirm Popover still closes on outside click
[ ] Run Popover tests and ensure they pass
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Updated documentation and storybook examples[ ] Addressed any impact on accessibility (a11y)More details can be found in the pull request guide