amsul / amsul/pickadate.js

onSet Callback for highlight events contains the previous highlight

Đang mở
#948 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.