greatCodeIdeas / md-date-range-picker

Angular Material Date Range Picker Service/Directive
MIT License
62 stars 40 forks source link

RangeError: Maximum call stack size exceeded #48

Closed vikasinnoeye closed 6 years ago

vikasinnoeye commented 6 years ago

Hi, I am getting this error after adding this library:

at Date.setMonth (<anonymous>:1024:39)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)
at Date.setMonth (<anonymous>:1025:132)

How I can fix this error.

roelbarreto commented 6 years ago

You might have other libraries causing a conflict The code that call setMonth is only for generating month Names https://github.com/greatCodeIdeas/md-date-range-picker/blob/master/src/md-date-range-picker.js#L275

roelbarreto commented 6 years ago

@vikasinnoeye I have published a hot fix, please let me know if still having issue Regards...