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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
If I have a paper-button on an overlay that starts out disabled but becomes enabled while the overlay is shown, that button cannot be tabbed to. This was working in version 1.7.2, commit 0680975 seems the likely culprit
In v1.7.2, iron-overlay-behavior would search for the focusable elements when its children changed (before the paper-button would be disabled). In the latest version, this search is done when the overlay is fully opened (right before sending iron-overlay-opened).
There is already an effort going on to separate the focus wrapping/trapping into a separate behavior (see #179), and in PR #178 I'm updating iron-overlay-behavior to use this new behavior. Once merged, you'll be able to set the first/last focusable like this: http://jsbin.com/zanene/5/edit?html,output
This has been fixed by introducing a new method, invalidateTabbables() to invalidate the tabbable elements. You'll have to call overlay.invalidateTabbables() right after the state of your focusable elements changes.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If I have a paper-button on an overlay that starts out disabled but becomes enabled while the overlay is shown, that button cannot be tabbed to. This was working in version 1.7.2, commit 0680975 seems the likely culprit
Expected outcome
I should be able to tab to the item.
Actual outcome
I can't tab to the item.
Live Demo
http://jsbin.com/foxosogusu/2/edit?html,console,output
Steps to reproduce
See above.
Browsers Affected
chrome
The text was updated successfully, but these errors were encountered: