Skip to content

Commit

Permalink
remove root class from classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Aug 17, 2023
1 parent ffd6157 commit 3c2d11b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mui-material/src/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const Select = React.forwardRef(function Select(inProps, ref) {

const ownerState = { ...props, variant, classes: classesProp };
const classes = useUtilityClasses(ownerState);
const { root, ...restOfClasses } = classes;

const InputComponent =
input ||
Expand Down Expand Up @@ -113,7 +114,7 @@ const Select = React.forwardRef(function Select(inProps, ref) {
SelectDisplayProps: { id, ...SelectDisplayProps },
}),
...inputProps,
classes: inputProps ? deepmerge(classes, inputProps.classes) : classes,
classes: inputProps ? deepmerge(restOfClasses, inputProps.classes) : restOfClasses,
...(input ? input.props.inputProps : {}),
},
...(multiple && native && variant === 'outlined' ? { notched: true } : {}),
Expand Down

0 comments on commit 3c2d11b

Please sign in to comment.