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
Setting the default options in ts translates to var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
but react-datepicker is passing null when a locale is not set rather than no argument, so var locale = options.locale;
is throwing a TypeError.
Would it perhaps be expedient to put the truthy check back in?
The text was updated successfully, but these errors were encountered:
We honestly tried to replicate the issue you are facing with the date-picker but it didn't crash.
It has already been said in the other thread that fixing the line below could fix the issue in the datepicker. react-datepicker @stephen-p-richard you mentioned v.3.5 and higher should work ok.
Im going to close this as this is not an issue with date-fns.
See Hacker0x01/react-datepicker#2870
Setting the default options in ts translates to
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
but react-datepicker is passing null when a locale is not set rather than no argument, so
var locale = options.locale;
is throwing a TypeError.
Would it perhaps be expedient to put the truthy check back in?
The text was updated successfully, but these errors were encountered: