Skip to content

Commit

Permalink
Fix #4834: Calendar p-inputwrapper-focus (#4843)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 29, 2023
1 parent b2fe768 commit bc5f464
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const Calendar = React.memo(
const onInputBlur = (event) => {
!props.keepInvalid && updateInputfield(props.value);
props.onBlur && props.onBlur(event);
setFocusedState(false);
};

const onInputKeyDown = (event) => {
Expand Down Expand Up @@ -1444,8 +1445,6 @@ export const Calendar = React.memo(
};

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

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

0 comments on commit bc5f464

Please sign in to comment.