You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can happen if you're listening to changeDate and calling getDate and the user clicked on an already-selected date and toggled it off (Hopefully fixed soon).
Also happens if you plain call a = $("#sandbox-container input").datepicker("getDate") on the online-demo with no date selected.
The text was updated successfully, but these errors were encountered:
+1
Getting this exact same issue. Problem seems to be _toggle_multidate removes the selected date from the this.dates array, leaving an empty array.
When it then triggers the changedate event, this.dates.get(-1) will return undefined.
This can happen if you're listening to
changeDate
and callinggetDate
and the user clicked on an already-selected date and toggled it off (Hopefully fixed soon).Also happens if you plain call
a = $("#sandbox-container input").datepicker("getDate")
on the online-demo with no date selected.The text was updated successfully, but these errors were encountered: