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.
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.