diff --git a/components/splitbutton/SplitButton.vue b/components/splitbutton/SplitButton.vue index edb5a174f..a37b13999 100755 --- a/components/splitbutton/SplitButton.vue +++ b/components/splitbutton/SplitButton.vue @@ -27,6 +27,7 @@ import { UniqueComponentId } from 'primevue/utils'; export default { name: 'SplitButton', + emits: ['click'], props: { label: { type: String, @@ -91,6 +92,8 @@ export default { }, onDefaultButtonClick(event) { this.$refs.menu.hide(event); + + this.$emit('click'); } }, computed: {