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
When vaadin-radio-group is placed inside vaadin-dialog, the focus trap logic iterates over all vaadin-radio-button elements on Tab instead of leaving the group as expected (arrow keys are supposed to be used).
Expected outcome
Expected the focus to leave the group on first Tab similarly to how it's used outside the dialog.
Minimal reproducible example
<vaadin-dialog></vaadin-dialog><vaadin-button>Open dialog</vaadin-button><scripttype="module">import'@vaadin/dialog';import'@vaadin/button';import'@vaadin/radio-group';constdialog=document.querySelector('vaadin-dialog');dialog.renderer=(root)=>{if(root.firstChild){return;}root.innerHTML=` <vaadin-radio-group label="Travel class"> <vaadin-radio-button value="economy" label="Economy"></vaadin-radio-button> <vaadin-radio-button value="business" label="Business"></vaadin-radio-button> <vaadin-radio-button value="firstClass" label="First Class"></vaadin-radio-button> </vaadin-radio-group> `};// Open first dialogconstbtn=document.querySelector('vaadin-button');btn.addEventListener('click',()=>{dialog.opened=true;});</script>
Steps to reproduce
Open the dialog
Press Tab multiple times
Environment
Vaadin version(s): v24
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered:
Description
When
vaadin-radio-group
is placed insidevaadin-dialog
, the focus trap logic iterates over allvaadin-radio-button
elements on Tab instead of leaving the group as expected (arrow keys are supposed to be used).Expected outcome
Expected the focus to leave the group on first Tab similarly to how it's used outside the dialog.
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): v24
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: