Skip to content

Commit

Permalink
fix(NcButton): correctly emit click event
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Aug 4, 2023
1 parent 271fc27 commit 96605df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcButton/NcButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ export default {
*/
this.$emit('update:pressed', !this.pressed)
}
// We have to both navigate and call the listeners click handler
this.$listeners?.click?.($event)
// We have to both navigate and emit the click event
this.$emit('click', $event)
navigate?.($event)
},
},
Expand Down

0 comments on commit 96605df

Please sign in to comment.