Skip to content

Commit ac65301

Browse files
committed
disable opening when fixed
1 parent cffbad7 commit ac65301

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/side-nav.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,13 @@ module.exports =
219219
@hide() unless restoreNav
220220
221221
toggle: ->
222-
if @opened
223-
@close()
222+
if @isFixed # disable opening when fixed
223+
@isOpened = @opened
224224
else
225-
@open()
225+
if @opened
226+
@close()
227+
else
228+
@open()
226229
227230
ready: ->
228231
@processFixed()

0 commit comments

Comments
 (0)