Skip to content

Commit

Permalink
Fix #6795: Fix calendar overlay requiring double click on date to sel…
Browse files Browse the repository at this point in the history
…ect a value when mask is present (#6972)

* Fix calendar overlay requiring double click on date to select a value when mask is present

* Don't focus the overlay if inline is set
  • Loading branch information
frle10 authored Aug 2, 2024
1 parent 7de9834 commit f64fdb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3046,8 +3046,10 @@ export const Calendar = React.memo(
}, [props.view]);

useUpdateEffect(() => {
focusToFirstCell();
}, [currentView]);
if (visible && !props.inline) {
focusToFirstCell();
}
}, [visible, currentView, props.inline]);

useUpdateEffect(() => {
if (!props.onViewDateChange && !viewStateChanged.current) {
Expand Down

0 comments on commit f64fdb6

Please sign in to comment.