Open exstyle opened 5 years ago
I have the same problem, but it only happens when i select multiple inputs like $('#input1, #input2'). Changing this to $('#input1').datepicker(); and $('#input2').datepicker(); works for me
I can confirm this bug on 1.9.13, using the test: select: function (e, type) { alert('Select from type of "' + type + '" is fired'); }
I obtain infinite alert. Also with single input: $('#input').datepicker()
Still present, will this ever be fixed?
@Sonic1305 @exstyle I have found a solution to this problem
$('#deliveryDate').datepicker({ format: 'dd/mm/yyyy', }); var lastValue = null; //or last value $("#deliveryDate").on("change", function(e) { if(lastValue !== e.target.value){ alert("hi") console.log(e.target.value) lastValue = e.target.value; }
Try it
EDIT : Infinite event, when value is set (the bug occurs also with only one datepicker)). The event is also fired as soon as we click, so before the change (once the value has been set).
I believe it's the same bug.
Was working ok before i upgrade to 1.9.11 (can't remember which version i had before).