How to automatically hide the drawer after select the item
In the layout example:
The toolbar has a button to toggle the left drawer. But if I open the drawer from small window and click on any of the qitem, the drawer does not automatically hide.
How to achieve that and only for mobile window? Thanks!
PeterQF last edited by
Also what to know this.
This also doesnt work for me.
In Android, I click on a item in the left drawer, then the vue file is loaded but the left drawer is still open and I cannot close it (only by pressing the back button but then you go back to the first page).
Any ideas how to solve this?
benoitranque last edited by
Add a click handler to update the variable that controls the state of your drawer.
ex. @click=“leftDrawerOpen = !leftDrawerOpen”
I added that to each of the <q-item> tags in my drawer.