Skip to content

Commit f04e48a

Browse files
authored
Fix #7890: Calendar refocus input after ESC key (#7891)
1 parent 1a6947d commit f04e48a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/lib/calendar/Calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const Calendar = React.memo(
3939

4040
useGlobalOnEscapeKey({
4141
callback: () => {
42-
hide();
42+
hide(null, reFocusInputField);
4343
},
4444
when: overlayVisibleState && overlayDisplayOrder,
4545
priority: [ESC_KEY_HANDLING_PRIORITIES.OVERLAY_PANEL, overlayDisplayOrder]

0 commit comments

Comments
 (0)