Skip to content

Commit c5f28e6

Browse files
sdirixlucas-koehler
authored andcommitted
fix: always hide React Material multi enum when not visible
The 'Hidden' of the MaterialEnumArrayRenderer only applied from screen size 'xl' and larger. However it should always apply. This fix changes 'xlUp' to 'xsUp', therefore the control is hidden on all screen sizes.
1 parent fce6b1e commit c5f28e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/material-renderers/src/complex/MaterialEnumArrayRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const MaterialEnumArrayRenderer = ({
3939
...otherProps
4040
}: ControlProps & OwnPropsOfEnum & DispatchPropsOfMultiEnumControl) => {
4141
return (
42-
<Hidden xlUp={!visible}>
42+
<Hidden xsUp={!visible}>
4343
<FormControl component='fieldset'>
4444
<FormGroup row>
4545
{options.map((option: any, index: number) => {

0 commit comments

Comments
 (0)