Skip to content

Commit

Permalink
Merge pull request #4398 from nextcloud-libraries/fix/noid/button-emi…
Browse files Browse the repository at this point in the history
…t-click

fix(NcButton): correctly emit click event
  • Loading branch information
raimund-schluessler committed Aug 4, 2023
2 parents 271fc27 + 96605df commit de691a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcButton/NcButton.vue
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 de691a0

Please sign in to comment.