bootstrap-timepicker icon indicating copy to clipboard operation
bootstrap-timepicker copied to clipboard

'change' event is fired when the value of the input has not changed.

Open pianovwork opened this issue 11 years ago • 3 comments

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();
        }
    },

pianovwork avatar Nov 04 '13 10:11 pianovwork

I have this problem too. It's really annoying and not intuitive at all.

gnapse avatar Jun 01 '15 17:06 gnapse

Did you solve this problem? If yes, what's the solution

gameboyzone avatar Mar 18 '16 21:03 gameboyzone

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.

mrhota avatar Mar 21 '16 17:03 mrhota