Closed mhahmadi closed 8 years ago
Some possible fixes are:
@notwaldorf
I think @valdrinkoshi tried to do something similar for overlays, maybe it's worth doing here as well? https://github.com/PolymerElements/iron-overlay-behavior/pull/200/files#diff-85329e739caff16e918d7795425ad390R134
Actually, maybe calling focus()
and seeing if that's the activeElement
is better.
/cc @bicknellr who owns this
Description
When paper-listbox/paper-menu receives focus, it attempts to give focus to child elements that may not be visible.
Expected outcome
Non-visible elements are not focusable and should be skipped.
Actual outcome
Non-visible child won't get focus and the focus outline is seen around the paper-listbox/paper-menu.
Live Demo
https://jsfiddle.net/dmtrp0hL/