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

Pressing the button sometimes makes the count go down #27

Open
zwalsh opened this issue Mar 19, 2023 · 0 comments
Open

Pressing the button sometimes makes the count go down #27

zwalsh opened this issue Mar 19, 2023 · 0 comments

Comments

@zwalsh
Copy link
Owner

zwalsh commented Mar 19, 2023

If the button's current state gets backwards from the actual state, then pressing the button will make the count go down instead of up.

I think this can happen if you press the button quickly, before the event listeners are all registered:

https://github.com/zwalsh/button/blob/main/src/main/resources/static/src/main.js#L35

https://github.com/zwalsh/button/blob/main/src/main/resources/static/src/main.js#L63-L73

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