changeDate firing but callback not called

152 views
Skip to first unread message

Dirt Farmer

unread,
Dec 8, 2017, 11:24:21 AM12/8/17
to bootstrap-datepicker
I'm trying to use dateChange method to make calendar close immediately when user selects a date, but my callback is not called.  I debugged through source code and event is firing but the callback is not called.

v 1.7.1
jQuery 2.2.4



$('.datepicker').datepicker({todayHighlight: true})
.on('dateChange', function(e) {
       console.log("yessss");
});


Juan Boada

unread,
Dec 8, 2017, 6:58:13 PM12/8/17
to bootstrap-datepicker

Dirt Farmer

unread,
Dec 8, 2017, 8:45:42 PM12/8/17
to bootstrap-datepicker
Thanks for the link. That's what I ended up doing, listening to change event on the input 

Juan Boada

unread,
Dec 9, 2017, 9:20:08 PM12/9/17
to bootstrap-datepicker
No problem! I hope it can help you.
Reply all
Reply to author
Forward
0 new messages