Skip to content

Commit

Permalink
Fixed #120 - Menu should prevent default action when there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Dec 23, 2019
1 parent e64b970 commit b766614
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b766614

Please sign in to comment.