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
Copy Markdown

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.
@gabor-dukai-epam
Copy link
Copy Markdown

Could you merge this?
We also use this library and experience the same issue.
Seems like this change could fix it.
@farhoudshapouran @Darcyu83

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.

3 participants