Skip to content

Commit

Permalink
fix: always hide React Material multi enum when not visible
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdirix authored and lucas-koehler committed Jan 22, 2024
1 parent fce6b1e commit c5f28e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const MaterialEnumArrayRenderer = ({
...otherProps
}: ControlProps & OwnPropsOfEnum & DispatchPropsOfMultiEnumControl) => {
return (
<Hidden xlUp={!visible}>
<Hidden xsUp={!visible}>
<FormControl component='fieldset'>
<FormGroup row>
{options.map((option: any, index: number) => {
Expand Down

0 comments on commit c5f28e6

Please sign in to comment.