Skip to content

Commit

Permalink
fix: 🐛 stop click propagation from burger menu
Browse files Browse the repository at this point in the history
  • Loading branch information
laruiss committed Aug 24, 2023
1 parent 03a5867 commit a348eaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/DsfrHeader/DsfrHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ defineEmits<{
aria-controls="header-search"
aria-label="Recherche"
title="Recherche"
:data-fr-opened="showSearchModal"
@click="showSearchModal"
:data-fr-opened="searchModalOpened"
@click.prevent.stop="showSearchModal()"
/>
<button
v-if="quickLinks?.length"
Expand All @@ -136,7 +136,7 @@ defineEmits<{
aria-label="Menu"
title="Menu"
data-testid="open-menu-btn"
@click="showMenu()"
@click.prevent.stop="showMenu()"
/>
</div>
</div>
Expand Down Expand Up @@ -218,7 +218,7 @@ defineEmits<{
class="fr-btn fr-btn--close"
aria-controls="header-navigation"
data-testid="close-modal-btn"
@click="hideModal"
@click.prevent.stop="hideModal()"
>
Fermer
</button>
Expand Down Expand Up @@ -246,7 +246,7 @@ defineEmits<{
</div>
</div>
</div>
<slot/>
<slot />
</div>
</div>
</header>
Expand Down

0 comments on commit a348eaa

Please sign in to comment.