We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 819be21 + 12055f8 commit 7c2039dCopy full SHA for 7c2039d
1 file changed
packages/reakit/src/Checkbox/Checkbox.ts
@@ -135,6 +135,7 @@ export const useCheckbox = createHook<CheckboxOptions, CheckboxHTMLProps>({
135
if (onChangeRef.current) {
136
// If component is NOT rendered as a native input, it will not have
137
// the `checked` property. So we assign it for consistency.
138
+ // check this If condition
139
if (!isNativeCheckbox) {
140
element.checked = !element.checked;
141
}
0 commit comments