How to auto-focus an element in a tab after clicking the menu on SidePanel

154 views
Skip to first unread message

DevHero

unread,
Apr 4, 2024, 4:07:34 PM4/4/24
to Chromium Extensions

Hello

I will make a Chrome extension for auto filling text into textarea.
using chrome.scripting.executeScript()

After clicking the menu in SidePanel, the cursor cannot focus back into an element in the tab.

document.activeElement.focus() , it's not working.

How to switching autofocus between  Tab and SidePanel ?

thank you.
-

Video_2024-04-05_012519 (1).gif
Reply all
Reply to author
Forward
0 new messages