Skip to content

Commit

Permalink
Merge branch 'main' into 16153-notification
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylam committed Sep 13, 2024
2 parents e7e0042 + 47ceaad commit d1571c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ const DatePicker = React.forwardRef(function DatePicker(
document.activeElement === endInputField.current &&
calendarRef.current.isOpen
) {
event.preventDefault();
calendarRef.current.close();
// Remove focus from endDate calendar input
document.activeElement instanceof HTMLElement && // this is to fix the TS warning
Expand Down

0 comments on commit d1571c6

Please sign in to comment.