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
Moving focus stops working upwards if hidden attribute is set to true of an element in the focus flow
To reproduce:
I have button that I hide when it is clicked
Start moving focus downwards till button is reached, click that button, click handler will execute button.hidden = true;
moving focus downwards if further elements are present below the now hidden button works
moving focus upwards from where the button was previously displayed no longer works
So setting an element to hidden in the chain, disrupts the focus flow upwards starting from that element
The text was updated successfully, but these errors were encountered:
Thanks for reporting! We believe this is something that may have also been an issue in primer/view_components that was resolved by @TylerJDev. Tyler, does that sound familiar? If so, would you be willing to take a look at upstreaming that work into primer/behaviors as well?
Moving focus stops working upwards if hidden attribute is set to true of an element in the focus flow
To reproduce:
I have button that I hide when it is clicked
Start moving focus downwards till button is reached, click that button, click handler will execute
button.hidden = true;
moving focus downwards if further elements are present below the now hidden button works
moving focus upwards from where the button was previously displayed no longer works
So setting an element to hidden in the chain, disrupts the focus flow upwards starting from that element
The text was updated successfully, but these errors were encountered: