Skip to content

Commit

Permalink
Bug fix: Removed @click event from Button component which was causing…
Browse files Browse the repository at this point in the history
… double clicks to fire
  • Loading branch information
nwittwer committed Jun 17, 2023
1 parent 70cf360 commit 4bde7f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/components/Shared/Button.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="button" :class="containerStyles" @click="onClick($event)">
<div class="button" :class="containerStyles">
<Icon v-if="icon" :name="icon" :color="iconColor" class="button__icon" />
<span class="button__text">
<slot />
Expand Down Expand Up @@ -99,9 +99,9 @@ export default {
* Emits a 'click' event
* Can be listened via @click
*/
onClick(event) {
this.$emit('click', event)
}
// onClick(event) {
// this.$emit('click', event)
// }
}
}
</script>
Expand Down

0 comments on commit 4bde7f3

Please sign in to comment.