You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].forEach(
because the date argument provided using getFirstDayInMonth(date).ddd
will return what was defined through dayjs.locale() other than "en" will return non english weekday string,
thus won't match anything so the variable number will always be zero.
I'm implementing a fix, and will update with a pull request.
If you declare dayjs.locale() somewhere alongside using this library,
the weekday matching function below will fail:
react-tailwindcss-datepicker/src/helpers/index.ts
Line 174 in bf063fe
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].forEach(
because the date argument provided using getFirstDayInMonth(date).ddd
will return what was defined through dayjs.locale() other than "en" will return non english weekday string,
thus won't match anything so the variable number will always be zero.
I'm implementing a fix, and will update with a pull request.
See related: #150
The text was updated successfully, but these errors were encountered: