We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1277e9a commit 42da0a3Copy full SHA for 42da0a3
packages/react-renderer-demo/src/components/layout.js
@@ -189,7 +189,7 @@ const Layout = ({ children }) => {
189
className={classes.drawer}
190
variant="persistent"
191
anchor="left"
192
- open={open}
+ open={open && window && window.innerWidth > 960}
193
classes={{
194
paper: classes.drawerPaper
195
}}
@@ -203,10 +203,13 @@ const Layout = ({ children }) => {
203
204
variant="temporary"
205
206
+ open={open && window && window.innerWidth < 960}
207
208
209
210
+ ModalProps={{
211
+ keepMounted: true
212
+ }}
213
>
214
<Navigation closeNav={handleDrawerClose} />
215
<Divider />
0 commit comments