Skip to content

Close the datepicker when focus leaves - #42855

Merged
mdo merged 3 commits into
v6-devfrom
mdo/fix-datepicker-focus-dismiss
Aug 20, 2026
Merged

Close the datepicker when focus leaves#42855
mdo merged 3 commits into
v6-devfrom
mdo/fix-datepicker-focus-dismiss

Conversation

@mdo

@mdo mdo commented Aug 20, 2026

Copy link
Copy Markdown
Member
  • Close the datepicker popup when focus moves outside the trigger and calendar.
  • Remove the document focus listener on dispose.

Vanilla Calendar Pro ignores focus, so keyboard users could
tab out and leave the calendar open. Dismiss it on document
focusin outside the trigger and popup.
@mdo
mdo requested a review from a team as a code owner August 20, 2026 00:54
@mdo mdo added this to v6.0.0 Aug 20, 2026
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Aug 20, 2026
mdo added 2 commits August 19, 2026 21:03
Keep the source, tests, and docs. Rebuild dist on merge.
Keep one note on why the listener is on document. Drop the rest.
@mdo
mdo merged commit 77ba2ea into v6-dev Aug 20, 2026
12 checks passed
@mdo
mdo deleted the mdo/fix-datepicker-focus-dismiss branch August 20, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant