bootstrap-timepicker
bootstrap-timepicker copied to clipboard
'change' event is fired when the value of the input has not changed.
updateElement: function() {
this.$element.val(this.getTime()).change();
},
Before firing change event, please verify that new value is not the same. Something like that:
updateElement: function() {
if(this.$element.val() !== this.getTime()){
this.$element.val(this.getTime()).change();
}
},
I have this problem too. It's really annoying and not intuitive at all.
Did you solve this problem? If yes, what's the solution
While this is still an issue, the solution would be, of course, to do that check yourself.
Thanks for the report @pyanoveugen and @gnapse. It's good to know it's annoying.