Fixed #120 - Menu should prevent default action when there is none

pull/132/head
cagataycivici 2019-12-23 11:47:00 +03:00
parent e64b9704ec
commit b766614440
1 changed files with 4 additions and 0 deletions

View File

@ -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();