Closed micodel closed 6 years ago
The README lists all props as optional, so I rendered <CalendarPicker /> as a test.
<CalendarPicker />
When clicking on a calendar date it throws an error: "onDateChange is not a function"
If this field is required, please update the README. If this field should be optional, the issue may be with the defaultProp.
Thanks for noticing this. An easy fix would be to add a default prop with an empty function.
Fixed in PR #111.
Thanks for such fast action on this!
The README lists all props as optional, so I rendered
<CalendarPicker />
as a test.When clicking on a calendar date it throws an error: "onDateChange is not a function"
If this field is required, please update the README. If this field should be optional, the issue may be with the defaultProp.