We’ve introduced a new UI pattern that opens an action panel immediately on click—no second load state, no extra modals.

🧵 Just discovered openPanelOnActionClick and I’m never going back.

<Button onClick=() => openPanel('editUser', userId)> Edit User </Button> // Panel opens and focuses on the first action input automatically

Stop hiding actions behind multiple clicks. Meet openPanelOnActionClick .

chrome.sidePanel.setPanelBehavior( openPanelOnActionClick: true ) .catch((error) => console.error(error)); Use code with caution. Copied to clipboard

React snippet 👇

The usage of openPanelOnActionClick can vary depending on the framework or library being used. Here are a few examples:

Are you running into any in your console? sidePanel does not automatically open #982 - GitHub

opened his manifest.json . He realized that by default, clicking the extension's "action" (the icon in the toolbar) didn't know it was supposed to open the side panel. He had to tell the browser exactly what to do. He added a single, powerful line to his manifest:

Written by human. Hosted on Digital Ocean.