Fixed #120 - Menu should prevent default action when there is none
parent
e64b9704ec
commit
b766614440
|
@ -60,6 +60,10 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
itemClick(event) {
|
itemClick(event) {
|
||||||
const item = event.item;
|
const item = event.item;
|
||||||
|
if (item.disabled || (!item.to && !item.url)) {
|
||||||
|
event.originalEvent.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (item.command) {
|
if (item.command) {
|
||||||
item.command(event);
|
item.command(event);
|
||||||
event.originalEvent.preventDefault();
|
event.originalEvent.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue