Skip to content

Commit

Permalink
Add prevent directive to masthead item click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jun 28, 2024
1 parent 04c68ea commit 8d20256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Masthead/MastheadItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defineProps({
:target="target || '_parent'"
:link-classes="{ 'nav-icon': !!icon, toggle: toggle }"
:title="tooltip"
@click="$emit('click')">
@click.prevent="$emit('click')">
<template v-if="icon">
<!-- If this is an icon-based tab, inject tooltip directly for screen readers -->
<span class="sr-only">{{ tooltip || id }}</span>
Expand Down

0 comments on commit 8d20256

Please sign in to comment.