Skip to content

fix: allow month 0 to focus initial month#235

Open
Darcyu83 wants to merge 1 commit intofarhoudshapouran:mainfrom
Darcyu83:fix/month-zero
Open

fix: allow month 0 to focus initial month#235
Darcyu83 wants to merge 1 commit intofarhoudshapouran:mainfrom
Darcyu83:fix/month-zero

Conversation

@Darcyu83
Copy link

What

Allow month=0 to be applied when setting the initial focused month.

Why

When opening the calendar, the focused month could not be set to January (0) because the check treated 0 as falsy.

How

Use a numeric check for month so 0 is allowed.

Allow month=0 to be applied when setting the initial focused month.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants