When I pass in a value for current_date but also set required to be false I'm ending up with a date picker that has the initial value set to '', which lets the placeholder show up. I think it should set the initial value to be the formatted version of current_date.
When I pass in a value for
current_date
but also setrequired
to befalse
I'm ending up with a date picker that has the initial value set to '', which lets theplaceholder
show up. I think it should set the initial value to be the formatted version ofcurrent_date
.I think this line is the culprit.
https://github.com/Baremetrics/calendar/blob/master/dev/js/Calendar.js#L776