Skip to content

Commit

Permalink
close nav menu when search button pressed on mobile viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-hadad committed Sep 26, 2018
1 parent 2bddd12 commit 42d0a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/partials/nav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
{{-- /presented when toggle pressed --}}

{{-- right navbar --}}
<div class="navbar-nav ml-lg-auto">
<div class="navbar-nav ml-lg-auto" slot-scope="{closeMenu}">
@if(config('larecipe.search.enabled'))
{{-- search button --}}
<larecipe-button id="search-button"
<larecipe-button @click="closeMenu" id="search-button"
:class="{'btn-primary': searchBox}"
@click="searchBox = ! searchBox"
type="link"
Expand Down

0 comments on commit 42d0a1f

Please sign in to comment.