Skip to content

Commit

Permalink
Stop event propagantion in edit-menu buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Sep 26, 2023
1 parent bf84ba3 commit d76a464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/EditMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
>
<p class="overflow-hidden text-sm text-ellipsis ml-7 whitespace-nowrap">{{ profile.name }}</p>
<div class="grow" />
<div class="icon-btn mdi mdi-download" @click="store.exportProfile(profile)" />
<div class="icon-btn mdi mdi-download" @click.stop="store.exportProfile(profile)" />
<template v-if="!store.isDefaultProfile(profile)">
<div class="icon-btn mdi mdi-cog" @click="renameProfile(profile)" />
<div class="icon-btn mdi mdi-cog" @click.stop="renameProfile(profile)" />
<div class="icon-btn mdi mdi-trash-can" @click.stop="store.deleteProfile(profile)" />
</template>
</Button>
Expand Down Expand Up @@ -60,7 +60,7 @@
>
<p class="overflow-hidden text-sm text-ellipsis ml-7 whitespace-nowrap">{{ view.name }}</p>
<div class="grow" />
<div class="icon-btn mdi mdi-cog" @click="renameView(view)" />
<div class="icon-btn mdi mdi-cog" @click.stop="renameView(view)" />
<div class="icon-btn mdi mdi-trash-can" @click.stop="store.deleteView(view)" />
</Button>
</div>
Expand Down

0 comments on commit d76a464

Please sign in to comment.