The jquery daterangepicker plugin removes all previously attached event handlers after _init is called. Each of the watch listeners for min ,max and opts will call the _init function, thus the cancel.daterangepicker handler fails to excute when any of above watchExp changes.
So, I suppose we may bind cancel.daterangepicker handler in _init function.
The jquery daterangepicker plugin removes all previously attached event handlers after
_init
is called. Each of the watch listeners formin
,max
andopts
will call the_init
function, thus thecancel.daterangepicker
handler fails to excute when any of above watchExp changes. So, I suppose we may bindcancel.daterangepicker
handler in_init
function.