Skip to content

Commit 47ceaad

Browse files
authored
fix(17398): fix focus order in firefox (#17435)
1 parent fac1c48 commit 47ceaad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/components/DatePicker/DatePicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ const DatePicker = React.forwardRef(function DatePicker(
911911
document.activeElement === endInputField.current &&
912912
calendarRef.current.isOpen
913913
) {
914+
event.preventDefault();
914915
calendarRef.current.close();
915916
// Remove focus from endDate calendar input
916917
document.activeElement instanceof HTMLElement && // this is to fix the TS warning

0 commit comments

Comments
 (0)