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
Selecting day in overlay calendar while using DayPickerInput with format=Array throws error "Uncaught TypeError: format.match is not a function" from moment.js.
Traced this to moment.js parsing accepting an array of string formats to check against but moment.format() expects a single string as argument [doc]
Selecting day in overlay calendar while using DayPickerInput with format=Array throws error "Uncaught TypeError: format.match is not a function" from moment.js.
Traced this to moment.js parsing accepting an array of string formats to check against but moment.format() expects a single string as argument [doc]
Example:
https://codesandbox.io/s/5wz092n1pk
Maybe as an easy compromise/fix when format is given as an array default to formatting by the first array element?
The text was updated successfully, but these errors were encountered: