Skip to content

Commit 849284f

Browse files
authored
fix(Calendar): prevent auto-refocus on single selection mode (#8302) (#8323)
1 parent 51a5074 commit 849284f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/lib/calendar/Calendar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,9 @@ export const Calendar = React.memo(
16791679
setTimeout(() => {
16801680
hide('dateselect');
16811681

1682-
reFocusInputField();
1682+
if (props.selectionMode !== 'single') {
1683+
reFocusInputField();
1684+
}
16831685
}, 100);
16841686

16851687
if (touchUIMask.current) {

0 commit comments

Comments
 (0)