Splitbutton default action problem fixed

pull/3468/head
Bahadır Sofuoğlu 2022-12-31 12:51:37 +03:00
parent c5c1e69a65
commit 4f013b09f7
1 changed files with 3 additions and 0 deletions

View File

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