Skip to content

Commit

Permalink
style: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin authored Dec 14, 2024
1 parent fd1af4f commit a2584a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ export const Calendar = React.memo(
const decrementYear = () => {
const year = getViewYear();
const _currentYear = year - 1;

setCurrentYear(_currentYear);

if (props.yearNavigator && _currentYear < yearOptions[0]) {
Expand Down Expand Up @@ -1791,6 +1792,7 @@ export const Calendar = React.memo(
const onMonthSelect = (event, month) => {
if (props.view === 'month') {
const year = getViewYear();

onDateSelect(event, { year, month: month, day: 1, selectable: true });
event.preventDefault();
} else {
Expand Down

0 comments on commit a2584a0

Please sign in to comment.