react-flatpickr
react-flatpickr copied to clipboard
onOpen and set(option,value) doesnt work for defaultMinute and defaultHour option value
onOpen={function(selectedDates, dateStr, instance){ instance.set("minDate", new Date()); }}
The above code works fine, but when i need to set the defaultMinute / defaultHour value in the config, it doesn't work as expected.
onOpen={function(selectedDates, dateStr, instance){ instance.set("defaultMinute", new Date().getMinutes()); }}
onOpen={function(selectedDates, dateStr, instance){ instance.set("defaultHour", 18); }}
Can you please let know if this can achieved.
any progress to this case? Please let me know if someone solve problem with instance.set('MinDate', new Value here)