Prevent form submit when deleting an icon

This commit is contained in:
Bubka 2020-01-08 17:10:56 +01:00
parent 0e79209b6d
commit 4432bc2a9b
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
</label>
<span class="tag is-black is-large" v-if="twofaccount.icon.length > 0">
<img class="icon-preview" :src="twofaccount.icon" >
<button class="delete is-small" @click="deleteIcon"></button>
<button class="delete is-small" @click.prevent="deleteIcon"></button>
</span>
</div>
</div>

View File

@ -30,7 +30,7 @@
</label>
<span class="tag is-black is-large" v-if="twofaccount.icon">
<img class="icon-preview" :src="'../' + twofaccount.icon" >
<button class="delete is-small" @click="deleteIcon"></button>
<button class="delete is-small" @click.prevent="deleteIcon"></button>
</span>
</div>
</div>