Skip to content

Commit 70d9e4d

Browse files
authored
Merge pull request #9056 from marmelab/9042-fix-string-given-to-booleaninput
Fix: string value supplied to BooleanInput checked prop
2 parents d074f20 + 7492ecf commit 70d9e4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ra-ui-materialui/src/input/BooleanInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const BooleanInput = (props: BooleanInputProps) => {
7979
color="primary"
8080
onChange={handleChange}
8181
onFocus={onFocus}
82-
checked={field.value}
82+
checked={Boolean(field.value)}
8383
{...sanitizeInputRestProps(rest)}
8484
{...options}
8585
disabled={disabled}

0 commit comments

Comments
 (0)