From e28347e146bf2bbaa0dea7b3e1c1941e719dc9fd Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 27 May 2020 09:55:53 +0300 Subject: [PATCH] Fixed double click issue on menu --- src/AppMenu.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 04a5a55aa..200db66e1 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -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; } } }