Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pianovwork opened this issue Nov 4, 2013 · 3 comments
Open

Comments

@pianovwork
Copy link

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();
        }
    },
@gnapse
Copy link

gnapse commented Jun 1, 2015

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

@gameboyzone
Copy link

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

@mrhota
Copy link
Collaborator

mrhota commented Mar 21, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants