Skip to content

Commit

Permalink
Fix #4568: Calendar focus state should change when displaying panel (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jun 30, 2023
1 parent 8f41a97 commit 8b977a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export const Calendar = React.memo(
};

const onInputBlur = (event) => {
setFocusedState(false);
!props.keepInvalid && updateInputfield(props.value);
props.onBlur && props.onBlur(event);
};
Expand Down Expand Up @@ -1439,6 +1438,8 @@ export const Calendar = React.memo(
};

const show = (type) => {
setFocusedState(false);

if (props.onVisibleChange) {
props.onVisibleChange({
visible: true,
Expand Down

0 comments on commit 8b977a9

Please sign in to comment.