react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

onOpen and set(option,value) doesnt work for defaultMinute and defaultHour option value

Open nbsavyasaachi opened this issue 6 years ago • 1 comments

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.

nbsavyasaachi avatar Jul 30 '18 15:07 nbsavyasaachi

any progress to this case? Please let me know if someone solve problem with instance.set('MinDate', new Value here)

andrewbudikusuma avatar Jun 29 '19 03:06 andrewbudikusuma