From 4f013b09f7fffc00f7592a5f034fec5a70939ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Sat, 31 Dec 2022 12:51:37 +0300 Subject: [PATCH] Splitbutton default action problem fixed --- components/splitbutton/SplitButton.vue | 3 +++ 1 file changed, 3 insertions(+) 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: {