Skip to content

Commit

Permalink
Fixing use12hours not updating when PM is clicked. (ant-design#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
vandercloak committed Jan 5, 2021
1 parent a2a6718 commit e1860eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/TimePanel/TimeBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function TimeBody<DateType>(props: TimeBodyProps<DateType>) {
value: hourValue,
};
});
}, [use12Hours, memorizedRawHours]);
}, [use12Hours, isPM, memorizedRawHours]);

const minutes = generateUnits(0, 59, minuteStep, disabledMinutes && disabledMinutes(originHour));

Expand Down

0 comments on commit e1860eb

Please sign in to comment.