idoros / zeejs

Layering in HTML
MIT License
7 stars 0 forks source link

Re-focus of a hidden saved element #27

Closed idoros closed 2 years ago

idoros commented 4 years ago

When a backdrop layer is closed there is an attempt to find a lower layer with a saved focused element to re-focus.

The issue is that currently even if an element is hidden it is still considered a valid element to re-focus.

It should skip hidden, non focusable, elements and search for a lower candidate to re-focus.