amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.02k forks source link

Infinite loop occurs with `.set('max', -Infinity)` #1236

Open Voileexperiments opened 2 years ago

Voileexperiments commented 2 years ago

Similar to #755, in v3.6.4 infinite loop occurs when trying to do

picker.set('max', -Infinity);

which is a pretty deadly pitfall (the intended code is picker.set('min', -Infinity); to reset the minimum date).