accessibility-developer-tools icon indicating copy to clipboard operation
accessibility-developer-tools copied to clipboard

AXS dev tools audits can mess with focus. Can we restore it after the test?

Open ewinslow opened this issue 9 years ago • 1 comments

I can clean up this issue trivially with code like so:

const focusedElement: any = document.activeElement;
// ... run audit ...
focusedElement.focus();

Seems like it'd be a nice good-faith effort to clean up after ADT like this by default.

ewinslow avatar Mar 24 '16 22:03 ewinslow

This just bit me too. After running an audit, focus is left on the last focusable element in the page. Very frustrating to try to work around it.

seancurtis avatar Jun 09 '16 05:06 seancurtis