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 Fires Twice for Number Input Type #294

Closed
bushizhang opened this issue Aug 29, 2015 · 3 comments
Closed

Change Event Fires Twice for Number Input Type #294

bushizhang opened this issue Aug 29, 2015 · 3 comments

Comments

@bushizhang
Copy link

I'm noticing a view firing the change event twice, but ONLY if I use the arrow keys on a number type input field.

More details:
http://stackoverflow.com/questions/32283153/backbone-view-change-event-fires-twice-for-number-input-type

@bushizhang
Copy link
Author

Turns out this was due to be an issue with my onSet function

@bushizhang bushizhang reopened this Aug 29, 2015
@bushizhang
Copy link
Author

I was mistaken with my previous comment, this issue still appears to exist.

@bushizhang
Copy link
Author

So I noticed when I change the onSet to not manually trigger a change event, it will only fire the change event once. This is sufficient for me to close the issue since the change event only fires once now even though the onSet is called twice.

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

No branches or pull requests

1 participant