Skip to content

Commit 7acef90

Browse files
committed
fix(forms): fix checkbox and switch toggle behavior
1 parent ef30a71 commit 7acef90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forms/helpers/useFormControl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function decode(value, type) {
7070
}
7171

7272
if (type === 'boolean') {
73-
return value === 'true';
73+
return typeof value === 'boolean' ? value : value === 'true';
7474
}
7575

7676
return value;

0 commit comments

Comments
 (0)