accessibility-developer-tools
accessibility-developer-tools copied to clipboard
AXS dev tools audits can mess with focus. Can we restore it after the test?
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.
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.