-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 does not toggle #1014
Comments
Seems like this is a less issue with the packaged themes. I will move this out to the other branch. |
I seem to have the same problem. As soon as I add a function to onClick or onChange the checkbox doesn't toggle anymore. |
Here's a working example: http://react.semantic-ui.com/modules/checkbox#remote-control |
To elaborate on what @psudarsa said, for me this was a css issue as I was using a custom theme and the css resulting from the Gulp build. Despite the actual input having the class of hidden, being readonly and not showing as checked, the javascript is actually working as it should. The problem is missing css. When using a custom theme, the builder is not including custom checkbox overrides. To fix this I copied the overrides from |
I am using a semantic.react with typescript. Here is a simple example
export class SearchBar extends Component<{}, { status: boolean }> {
}
the div seems to be generated always with readonly tag
I have tried this with onChange also. Am i doing something wrong here ?
The text was updated successfully, but these errors were encountered: