Skip to content

Commit 3569bda

Browse files
pdanpdanrstoenescu
authored andcommitted
fix(QLayoutDrawer): close the other mobileOpened side even if it is not mobile (quasarframework#1821)
1 parent bb4d595 commit 3569bda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/layout/QLayoutDrawer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,11 @@ export default {
403403
this.layout.__animate()
404404
this.applyPosition(0)
405405

406+
const otherSide = this.layout.instances[this.rightSide ? 'left' : 'right']
407+
if (otherSide && otherSide.mobileOpened) {
408+
otherSide.hide()
409+
}
406410
if (this.belowBreakpoint) {
407-
const otherSide = this.layout.instances[this.rightSide ? 'left' : 'right']
408-
if (otherSide && otherSide.mobileOpened) {
409-
otherSide.hide()
410-
}
411411
this.mobileOpened = true
412412
this.applyBackdrop(1)
413413
}

0 commit comments

Comments
 (0)