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
The documentation on the readme says that a Moment instance is an acceptable value for the date prop of DatePicker. It seems to work just fine when you pass a Moment.js instance, except that a PropTypes warning appears: "Failed PropType Invalid prop date supplied to DatePicker..
For what it's worth, it's pretty easy to work around by passing in yourMoment.toDate() instead, but it would be nice to be able to pass in the moment directly.
Issue
The documentation on the readme says that a Moment instance is an acceptable value for the date prop of DatePicker. It seems to work just fine when you pass a Moment.js instance, except that a PropTypes warning appears: "Failed PropType Invalid prop
date
supplied toDatePicker.
.Expected Behavior
There is no PropTypes warning.
Code
The text was updated successfully, but these errors were encountered: