diff --git a/components/lib/splitbutton/SplitButton.vue b/components/lib/splitbutton/SplitButton.vue index c67e3187a..591e9859a 100755 --- a/components/lib/splitbutton/SplitButton.vue +++ b/components/lib/splitbutton/SplitButton.vue @@ -56,7 +56,8 @@ export default { }); }, methods: { - onDropdownButtonClick() { + onDropdownButtonClick(event) { + event.preventDefault(); this.$refs.menu.toggle({ currentTarget: this.$el, relatedTarget: this.$refs.button.$el }); this.isExpanded = this.$refs.menu.visible; }, @@ -67,6 +68,8 @@ export default { } }, onDefaultButtonClick(event) { + event.preventDefault() + if (this.isExpanded) { this.$refs.menu.hide(event); }