Skip to content

Commit

Permalink
feat: close search on route change
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Sep 3, 2020
1 parent cdbf041 commit 6b17723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/layout/navigation/NavigationMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export default {
// Close Side Nav on route change
if (this.sideNav.isActive) this.setSideNavIsActive(false)

// Close Search on route change
if (this.search.isActive) this.setSearchIsActive(false)

// Set different layout depending of the route
switch (this.$nuxt.$route.name) {
case 'index':
Expand Down

0 comments on commit 6b17723

Please sign in to comment.