-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] "set checked" is triggering .change event #5777
Comments
Hi @pbarney, what the documentation means is that |
Thanks for responding! Although, I don't agree with your interpretation of the documentation. What it says is:
It doesn't say "component's internal callbacks" it says "an element's callbacks." It couldn't be clearer. This is why As an example:Suppose you have a toggle checkbox indicating that a user is allowed to log in. But if the user has active projects, you aren't allowed to disable his login.
Please see the JSBin Example I linked to above for an implementation. |
@pbarney Thank you, the use case makes sense. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Does "stale" mean that this won't be addressed? Just curious. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
ping |
We're controlling checkboxes manually, like a "reset to defaults" -type of scenario where we need to reset the state of several checkboxes at once. Ideally, we'd loop through the checkboxes and call an This is in addition to each So yeah, maybe the docs needs a better explanation or this could do with a fix? What is the difference between |
Semantic UI's "set checked" fires a
.change()
trigger. This should not be the case according to the documentationJSBin Example
Why this is bad:
.click()
doesn't work for keyboard interactions on the checkbox, alienating many users, including those with visual disabilities.The text was updated successfully, but these errors were encountered: