Open vfonic opened 4 years ago
Hi! Thanks for the great library!
I'm having some issues where react throws errors when Flatpickr props update. This happens no matter how fast (slow) I click on flatpickr days.
Flatpickr
I'm using flatpickr as a calendar widget where user can click on a date and check events for that day.
The error happens somewhere in DateTimePicker component.
DateTimePicker
Any ideas?
This is how I'm rendering flatpickr:
<Flatpickr onChange={datesSelected => onChangeDate(datesSelected[0])} value={value} options={{ ...(dates ? { enable: dates } : { disable: [] }), }} />
The bit that's throwing the warning is when dates array changes.
dates
I was seeing this on version 3.6.4, but by upgrading to 3.10.0 it resolved itself.
I am running version 3.10.0 and also experiencing this issue.
I get this warning too
Hi! Thanks for the great library!
I'm having some issues where react throws errors when
Flatpickr
props update. This happens no matter how fast (slow) I click on flatpickr days.I'm using flatpickr as a calendar widget where user can click on a date and check events for that day.
The error happens somewhere in
DateTimePicker
component.Any ideas?
This is how I'm rendering flatpickr:
The bit that's throwing the warning is when
dates
array changes.