Some Tricks For Dom Debug in Browser
Table of contents
Open Table of contents
My input element lost focus while input
-
Open Debug Console
-
Switch to element tab
-
Using inspector to select the input element
-
Back to the input element, try press space or using IME
-
Check for flash inside the element tab.
-
Normally, the element you picked should still able to view without any interactions; if not, it means the element itself got re-rendered, check the your state, local state shouldn’t cause this, but global state like Valtio might does.