Merge pull request #3468 from primefaces/issue-3467

SplitButton: default action problem fixed
pull/3509/head
Bahadır 2023-01-09 14:10:37 +03:00 committed by GitHub
commit 023a0a5be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: {