QDrawer cannot be initially set to true
See original GitHub issueWhat happened?
QDrawer initial value to true
doesn’t work.
What did you expect to happen?
I expected the Drawer to stay open after refresh
Reproduction URL
https://codesandbox.io/s/qdrawer-cannot-be-set-to-true-3k0fg?file=/src/App.vue
How to reproduce?
- Go the the reproduction link
- Refresh the view
- Observe that the Drawer auto-closes when instead should stay open
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
SPA Mode
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
QDrawer ignores 'show-if-above' property when window is ...
My problem isn't with the initial state. It's that after I resize the window, quasar sets the model to true if the initial...
Read more >DRAWER component of @material-ui/core does not appear ...
I cannot get the drawer to appear when I leave the variant prop as the ... does get toggled to "true" but the...
Read more >Layout Drawer | Quasar Framework
When QDrawer is set into overlay mode, it will force it to go into fixed position, regardless if QLayout's “view” prop is configured...
Read more >Drawer Navigator | React Navigation
Whether this screen should render the first time it's accessed. Defaults to true . Set it to false if you want to render...
Read more >How to have a page with or without q-drawer - Quasar forum
Something like “if activeTab is set, you can't set it to null”. That way it's easy to keep the correct tab highlighted.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Rolanddoda
Pushed a perf improvement on route watching though. It’ll go into Quasar v2.4.14. A side-effect will be that if your app is started from the root route, it won’t trigger the drawer hide() call described earlier (even if you put QDrawer directly under App.vue). But if starting your app with another route, the problem will still happen.
Bottom line: get your layout out of App.vue or use
persistent
on QDrawer.