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

Fix #1774 #1776

Conversation

DTProductions
Copy link
Contributor

The bug described in issue #1774 only happens when the scanning mode's scanning method is set to automatic, whereas the problem was that the Tile's onClick event was being fired twice when the output bar was empty.

Upon lots of debugging, I could state that this wasn't being caused by the events bubbling up (in both times the event's target and currentTarget were the same).

The culprit may lie in how the Scanner's automatic strategy handles the click event or the alternating DOM.

This PR fixes the issue by ensuring that the onClick event runs once, and only once.

@martinbedouret
Copy link
Collaborator

@DTProductions thank you very much for this! The fix looks good.

@martinbedouret martinbedouret merged commit c5f9630 into cboard-org:master Dec 13, 2024
5 checks passed
@DTProductions
Copy link
Contributor Author

@martinbedouret Glad to help!

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

Successfully merging this pull request may close these issues.

2 participants