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
Because of how the getFocusable() tests focusable elements, if an initial focus element is not returned, the element this method is called on will keep focus on the last element tested. This also causes the scroll reset to not work.
Possible Solution
If no initFocus element was returned, focus the first element after all element testing is finished.
Reverse the focusable elements array so that the last tested element would be the first focusable element in the target.
Add el.blur() after the element passes and is added to the array.
The text was updated successfully, but these errors were encountered:
Problem
Because of how the
getFocusable()
tests focusable elements, if an initial focus element is not returned, the element this method is called on will keep focus on the last element tested. This also causes the scroll reset to not work.Possible Solution
el.blur()
after the element passes and is added to the array.The text was updated successfully, but these errors were encountered: