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
We should either change it so parse is expected to handle being given a Date or a string, or change it so parse does not get called when the value is a Date.
The text was updated successfully, but these errors were encountered:
Using a DateInput with
onClose
causesparse
to be called with a Date, but it seems like it is expected to only be called with a string:The error comes from this line: https://github.com/appfolio/react-gears/blob/v5.7.2/src/components/DateInput.js#L249
It can be fixed by handling the case where the value is a date:
We should either change it so
parse
is expected to handle being given aDate
or astring
, or change it soparse
does not get called when the value is aDate
.The text was updated successfully, but these errors were encountered: