onSet Callback for highlight events contains the previous highlight
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 7.6k
- Fork
- 981
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
```
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.