fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

clearable="true" doesn't work in some cases #218

Closed RoyXun closed 5 years ago

RoyXun commented 7 years ago

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.