Closed nrwilliams closed 1 year ago
That initial date is ignored because Sep 3, 2023 is Sunday, which is disabled by daysOfWeekDisabled. You should be able to see data-date functioning if you change the initial date to any weekday or remove the daysOfWeekDisabled option.
@mymth That is brilliant haha didn't even think about that. Thanks that worked like a charm!
I have the data-date on a couple inputs. Then when i loop over them and initiate the Datepicker, my default date doesn't work, the input is just blank. Without querySelectorAll it seems to work. You can select and set dates just fine, but on initial load, the defaults i have don't seem to set.
Inputs look like this: