Fixed double click issue on menu

pull/345/head
cagataycivici 2020-05-27 09:55:53 +03:00
parent 56d367cd59
commit e28347e146
1 changed files with 9 additions and 1 deletions

View File

@ -279,7 +279,15 @@ export default {
event.preventDefault();
},
isSubmenuActive(name, routerIsActive) {
return this.activeSubmenus.hasOwnProperty(name) ? this.activeSubmenus[name] : routerIsActive;
if (this.activeSubmenus.hasOwnProperty(name)) {
return this.activeSubmenus[name];
}
else if (routerIsActive) {
this.activeSubmenus[name] = true;
return true;
}
return false;
}
}
}