-
Notifications
You must be signed in to change notification settings - Fork 362
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
Checkbox Example (Two State): Activate checkbox only on keyup #2518
Conversation
Note the failure of workflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the changes and it works great.
I think "spacebar" in the documentation needs to change to "space" to pass the spelling rules
Thank you for the review, I fixed the spell check 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, and it is working in my quick tests. @mcking65 after you merge this to main I'll copy these changes the move-examples
branch which reorganizes all the source code.
… toggling (pull #2722) Modified JavaScript for Checkbox Example (Mixed-State) so that the state of the checkbox does not change until key up. This change prevents continuous toggling if the user holds down the space key. This is the same change that was made for Checkbox Example (Two State) in pull request #2518. This commit fully resolves issue #2425.
Fixes #2425.
I chose to move this logic to a
keyup
handler to maintain consistency with HTML checkboxes. If this fix is okay, we should probably make a similar fix to the Mixed Checkbox example.