We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53fcb61 commit af864a0Copy full SHA for af864a0
packages/menu-bar/src/vaadin-menu-bar-mixin.js
@@ -881,6 +881,14 @@ export const MenuBarMixin = (superClass) =>
881
const increment = e.shiftKey ? -1 : 1;
882
let idx = currentIdx + increment;
883
idx = this._getAvailableIndex(items, idx, increment, (item) => !isElementHidden(item));
884
+
885
+ if ((idx > currentIdx && e.shiftKey) || (idx < currentIdx && !e.shiftKey)) {
886
+ // Prevent "roving tabindex" logic and let the normal Tab behavior if
887
+ // - currently in the first button submenu and Shift + Tab is pressed,
888
+ // - currently in the last button submenu and Tab is pressed.
889
+ return;
890
+ }
891
892
this.__switchSubMenu(items[idx]);
893
}
894
0 commit comments