From b7666144408741b3cc63702d94f6258b4a3152a0 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Mon, 23 Dec 2019 11:47:00 +0300 Subject: [PATCH] Fixed #120 - Menu should prevent default action when there is none --- src/components/menu/Menu.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index 5c66cf6e99..9f92ccfedb 100644 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -60,6 +60,10 @@ export default { methods: { itemClick(event) { const item = event.item; + if (item.disabled || (!item.to && !item.url)) { + event.originalEvent.preventDefault(); + } + if (item.command) { item.command(event); event.originalEvent.preventDefault();