as MDN suggests, I build a simple extension improve my experience by sidebar. by the way, it’s really convenient to use vscode extensions and web-ext cli to develop.
the problem is when I toggle the builtin sidebar like history-sidebar, the input is focus automatically.
however, on my extensions the sidebar can’t be focused.
and i notice that the setting-sidebar doesn’t swtich focus on it, i’m confused if it’s a normal behavior?
then, i try to manage the focus on myself such as using “autofocus” attr on tag and javascript below: