Skip to content

Commit

Permalink
fix: #214
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-ml committed May 8, 2023
1 parent d190f6b commit f0c28c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/checkbox/checkbox-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export function CheckboxInput(props: CheckboxInputProps) {
// Clicking on the input will change its internal `indeterminate` state.
// To prevent this, we need to force the input `indeterminate` state to be in sync with our.
createEffect(
on([() => ref, () => context.checked()], ([ref]) => {
on([() => ref, () => context.indeterminate()], ([ref, indeterminate]) => {
if (ref) {
ref.indeterminate = context.indeterminate() || false;
ref.indeterminate = !!indeterminate;
}
})
);
Expand Down

0 comments on commit f0c28c9

Please sign in to comment.