Open zawaideh opened 9 years ago
I believe this.element.change() should only be called if the dates changed.
Can you provide a jsfiddle example to display the problem?
Here is an example that reproduces it: https://jsfiddle.net/d33dh3ng/1/
On firefox you will see 'Too much recursion' in the console output.
Hi,
There is a problem in the update function when setting endDate and startDate (https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L806). this.element.change() is being called even if the date hasn't changed. I have a function that listens to changes on two date inputs and sets the startDate and endDate depending on their value. This line causes this function to be impossible since it triggers a change, which triggers setting startDate and endDate which triggers a change.. etc.