From 9a637012429ba605551071f721036bdb62164204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 11 Oct 2022 10:13:55 +0300 Subject: [PATCH] Refactor #3020 - submenu selection should focus root --- src/components/menubar/MenubarSub.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/menubar/MenubarSub.vue b/src/components/menubar/MenubarSub.vue index 6a91b84dde..9ae0edf2bb 100755 --- a/src/components/menubar/MenubarSub.vue +++ b/src/components/menubar/MenubarSub.vue @@ -232,6 +232,11 @@ export default { case 'Enter': { this.onItemClick(event, item, navigate); + + if (!this.root) { + this.setFocusToMenuitem(listItem, listItem.parentElement.parentElement); + } + event.preventDefault(); break; }