Skip to content

Commit 33fbecc

Browse files
Alcarosrstoenescu
authored andcommitted
QLayoutDrawer: Add NoHideOnRouteChange property (quasarframework#1697)
1 parent d6b2035 commit 33fbecc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/layout/QLayoutDrawer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default {
4040
},
4141
contentStyle: Object,
4242
contentClass: [String, Object, Array],
43+
noHideOnRouteChange: Boolean,
4344
noSwipeOpen: Boolean,
4445
noSwipeClose: Boolean
4546
},
@@ -114,6 +115,10 @@ export default {
114115
this.layout.__animate()
115116
},
116117
$route () {
118+
if (this.noHideOnRouteChange) {
119+
return
120+
}
121+
117122
if (this.mobileOpened || this.onScreenOverlay) {
118123
this.hide()
119124
}

0 commit comments

Comments
 (0)