Skip to content

Commit a7f73ec

Browse files
authored
Merge pull request #1057 from data-driven-forms/mui-checkbox
fix(mui): remove component prop from multi checkbox
2 parents 80adfe8 + ef51870 commit a7f73ec

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/mui-component-mapper/src/checkbox/checkbox.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const SingleCheckbox = (props) => {
3434
});
3535
const invalid = validationError(meta, validateOnMount);
3636
const text = invalid || ((meta.touched || validateOnMount) && meta.warning) || helperText || description;
37-
3837
return (
3938
<FormFieldGrid {...FormFieldGridProps}>
4039
<FormControl required={isRequired} error={!!invalid} component="fieldset" {...FormControlProps}>

packages/mui-component-mapper/src/multiple-chioce-list/multiple-choice-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const FinalCheckbox = ({ label, isDisabled: _isDisabled, ...rest }) => {
1212
const {
1313
FormControlLabelProps,
1414
CheckboxProps,
15-
props: { isRequired, isReadOnly, helperText, validate, isDisabled, ...props }
15+
props: { isRequired, isReadOnly, helperText, validate, isDisabled, component, ...props }
1616
} = useContext(CheckboxContext);
1717
return (
1818
<FormControlLabel

0 commit comments

Comments
 (0)