Skip to content

Commit 2a6a2b6

Browse files
committed
open navbar menu when restoring search on mobile
1 parent ab364a5 commit 2a6a2b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/vendor/docsearch.bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
this.$input.focus()
8989
this.$input.val(this.getVal())
9090
} else if (window.sessionStorage.getItem('docs:restore-search-on-back') === 'true') {
91+
if (!window.matchMedia('(min-width: 1024px)').matches) document.querySelector('.navbar-burger').click()
9192
restoreSearch.call(this)
9293
}
9394
}

0 commit comments

Comments
 (0)