Hi,
I just started to see if I can implement a11y-dialog as a model for an iframe, but it breaks the focus trap.
When tabbing through the iframe's focusable elements, the tab order doesn't move back to the modal when it reaches the last focusable element, rather it continues to the next natural tab stop in the DOM/browser. This is expected, since there are no event handlers assigned to the focusable elements in the iframe, but the behaviour is undesirable.
Is it possible to add event handlers to focusable elements in an iframe to fix this behavour, or at least offer any advice on how this might be best achieved?
Let me know if you'd like me to set up a demo that illustrates this behaviour.
Many thanks,
Andy
Hi,
I just started to see if I can implement a11y-dialog as a model for an iframe, but it breaks the focus trap.
When tabbing through the iframe's focusable elements, the tab order doesn't move back to the modal when it reaches the last focusable element, rather it continues to the next natural tab stop in the DOM/browser. This is expected, since there are no event handlers assigned to the focusable elements in the iframe, but the behaviour is undesirable.
Is it possible to add event handlers to focusable elements in an iframe to fix this behavour, or at least offer any advice on how this might be best achieved?
Let me know if you'd like me to set up a demo that illustrates this behaviour.
Many thanks,
Andy