Skip to content

Commit 4a347a7

Browse files
committed
refactor(CFormCheck): improve indeterminate property handling
1 parent 6561965 commit 4a347a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/coreui-react/src/components/form/CFormCheck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const CFormCheck = forwardRef<HTMLInputElement, CFormCheckProps>(
112112
if (inputRef.current && indeterminate) {
113113
inputRef.current.indeterminate = indeterminate
114114
}
115-
}, [indeterminate])
115+
}, [indeterminate, inputRef.current])
116116

117117
const FormControl = () => (
118118
<input

0 commit comments

Comments
 (0)