Skip to content

Commit

Permalink
Fix primefaces#4568: Calendar focus state should change when displayi…
Browse files Browse the repository at this point in the history
…ng panel
  • Loading branch information
melloware committed Jun 30, 2023
1 parent 8f41a97 commit a113c09
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 a113c09

Please sign in to comment.