Encountering some strange issues with the Material-UI drawer component. It's scrolling horizontally on my iPad, while it scrolls vertically on my MacBook and Android Phone.
Expected Result on MacBook:
https://i.sstatic.net/txBDf.png On my MacBook, it scrolls down and overflows vertically, just like on my phone
Unexpected Result on iPad:
https://i.sstatic.net/7sg8d.jpg However, on my iPad it overflows horizontally..?
The code for the drawer:
<Drawer
anchor="right"
open={open}
onClose={HandleClose}
classes={{ paper: classes.drawerPaper }}>
<Toolbar />
<Typography className={classes.title}>Select active regions</Typography>
<FormControl component="fieldset" className={classes.formControl}>
<FormGroup>
{regions.map(region => (
<FormControlLabel
control={
<Checkbox
checked={selectedRegions.includes(region.ID)}
onChange={e => handleRegionChange(region.ID, e.target.checked)}
/>
}
name={region.Name}
label={region.Name}
key={region.Name}
/>
))}
</FormGroup>
</FormControl>
</Drawer>
And here are the styles for the drawer:
drawerPaper: {
width: 320
},
Why is this happening? How can I fix this to only allow vertical scroll/overflow instead of horizontal on the iPad?
Edit: codesandbox: https://codesandbox.io/s/elated-khayyam-t6klg?file=/src/Drawer.js
Thank you in advance! :-)