document.addEventListener('focusin', () => console.info(`%c element in focus:`,'background: #222; color: #aada55', document.activeElement), {useCapture: true})
Last active
June 27, 2024 12:42
-
-
Save Velinje/d6478a1d6b205c791f6b0e7ecf309b56 to your computer and use it in GitHub Desktop.
Quick console log to debug focused element
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment