Fixed #120 - Menu should prevent default action when there is none
parent
e64b9704ec
commit
b766614440
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue