You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was fixed in #7142
But the fix for #7202 broke the previous fix
Expected outcome
If first sub menu item is disabled, then the first focus should be on the first enabled item and it should happen with only one down arrow click that open the sub menu item list.
Also reproducible in latest V24 using the dev page:
<vaadin-menu-bar></vaadin-menu-bar><scripttype="module">import'@vaadin/menu-bar';constcreateComponent=(text)=>{constitem=document.createElement('vaadin-menu-bar-item');item.textContent=text;returnitem;};constmenuBar=document.querySelector('vaadin-menu-bar');menuBar.items=[{text: 'View',tooltip: 'Options for how to view the content'},{text: 'Move',children: [{component: createComponent('To folder'),disabled: true},{component: createComponent('To archive')},{component: createComponent('To trash')},],},{text: 'Duplicate',tooltip: 'Create a duplicate'},];</script>
Description
This issue was fixed in #7142
But the fix for #7202 broke the previous fix
Expected outcome
If first sub menu item is disabled, then the first focus should be on the first enabled item and it should happen with only one down arrow click that open the sub menu item list.
Minimal reproducible example
Steps to reproduce
Use arrow keys to focus on 'share' and then it needs two arrow downs to focus on the first enabled item 'download'
Environment
Vaadin version(s): 14
Browsers
No response
The text was updated successfully, but these errors were encountered: