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
var datePicker = dateInput.pickadate({
onSet: function(e) {
if(e && e.highlight) {
console.log(new Date(e.highlight.pick)); // shows previously highlighted date instead of newly highlighted date
}
}
}).pickadate('picker');
Open the date picker, then navigate through the months, notice that as you click the month-change arrows, the highlight event logs the date that was previously highlighted, not the newly highlighted event.