There was an error while loading. Please reload this page.
1 parent aa5a73a commit aae38dcCopy full SHA for aae38dc
packages/material-ui/src/CheckboxesWidget/CheckboxesWidget.tsx
@@ -60,7 +60,7 @@ const CheckboxesWidget = ({
60
<FormLabel required={required} htmlFor={id}>
61
{label || schema.title}
62
</FormLabel>
63
- <FormGroup>
+ <FormGroup row={!!inline}>
64
{(enumOptions as any).map((option: any, index: number) => {
65
const checked = value.indexOf(option.value) !== -1;
66
const itemDisabled =
@@ -76,13 +76,7 @@ const CheckboxesWidget = ({
76
onFocus={_onFocus}
77
/>
78
);
79
- return inline ? (
80
- <FormControlLabel
81
- control={checkbox}
82
- key={index}
83
- label={option.label}
84
- />
85
- ) : (
+ return (
86
<FormControlLabel
87
control={checkbox}
88
key={index}
0 commit comments