Skip to content

Commit 7c2039d

Browse files
author
Ronan Felipe
authored
Merge pull request #6 from the-funnel/fix/codecov
create comment
2 parents 819be21 + 12055f8 commit 7c2039d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/reakit/src/Checkbox/Checkbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const useCheckbox = createHook<CheckboxOptions, CheckboxHTMLProps>({
135135
if (onChangeRef.current) {
136136
// If component is NOT rendered as a native input, it will not have
137137
// the `checked` property. So we assign it for consistency.
138+
// check this If condition
138139
if (!isNativeCheckbox) {
139140
element.checked = !element.checked;
140141
}

0 commit comments

Comments
 (0)