Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
fix event bubble bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Mar 7, 2019
1 parent 0998d5e commit 516245e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Commands/stubs/views/layouts/user.stub
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
</div>
<div class="flex items-center">
<div class="relative text-center">
<a @click.prevent="toggleDropdown()" class="block">
<img src="{{ asset('img/undraw_profile_pic_ic5t.svg') }}" class="w-8 h-8 cursor-pointer" />
</a>
<ul ref="dropdown" class="dropdown absolute w-32 z-50 pin-r list-reset bg-white rounded-lg py-2 shadow" style="display: none;">
<li>
<a class="no-underline text-teal hover:text-teal-darker block"
href="{{ route('logout') }}"
@click.prevent="$refs.logout_form.submit()">
{{ __('Logout') }}
</a>
<form ref="logout_form" action="{{ route('logout') }}" method="POST" class="hidden">
@csrf
</form>
</ul>
<a @click.stop="toggleDropdown()" class="block">
<img src="{{ asset('img/undraw_profile_pic_ic5t.svg') }}" class="w-8 h-8 cursor-pointer" />
</a>
<ul ref="dropdown" class="dropdown absolute w-32 z-50 pin-r list-reset bg-white rounded-lg py-2 shadow" style="display: none;">
<li>
<a class="no-underline text-teal hover:text-teal-darker block"
href="{{ route('logout') }}"
@click.prevent="$refs.logout_form.submit()">
{{ __('Logout') }}
</a>

<form ref="logout_form" action="{{ route('logout') }}" method="POST" class="hidden">
@csrf
</form>
</ul>
</div>
</div>
</nav>
Expand Down

0 comments on commit 516245e

Please sign in to comment.