-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CalendarMonth): does not skip a month on arrow click (#9722)
* fix(CalendarMonth): correct setting of initialDate * now focusing date on month change * change month and change year refactoring * fix(CalendarMonth): keep the dates unfocused on month change * fix(CalendarMonth): unfocus date on year change * fix(CalendarMonth): undefined check * refactor(CalendarMonth): remove unnecessary undefined check
- Loading branch information
1 parent
4ce6117
commit b09dd69
Showing
2 changed files
with
19 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** | ||
* @param {Date} date - A date to check the validity of | ||
*/ | ||
export const isValidDate = (date: Date) => Boolean(date && !isNaN(date as any)); | ||
export const isValidDate = (date?: Date) => Boolean(date && !isNaN(date as any)); |