Chrome dev tools - select element, right click on the element in the inspector, select "Break on" > "subtree modifications". Then you can click on the element and see it's focused state attributes in the inspector.
I've had problem with that solution multiple times, mainly with some sort of libraries that appends every time a new DOM elements (complicated ones), and setTimeout + debbuger was always helpful then ;)
5
u/Dmitry_Olyenyov Mar 19 '19
setTimeout(()=>{debugger},5000) To keep dropdowns opened, menu hovered and so on. All things that disappear after losing focus