Button that opens a new panel and Another Button that opens a new tab

nevermind I found a work around thanks anyways

No longer needed I figured it out. :smile:

Hi, is it possible to hide panel when clicking on a specific button? currently panel hides clicking on anywhere in the browser. i am using add-on SDK. Please help

Sorry I am stuck there as well.

Can you explain more fully what the issue is?

Sure, I have the panel open. Then I click somewhere else and by default it closes. I would like it to close only when I click on an exit button.

I have a second issue, so I am on the second panel and I click somewhere else besides the second panel and I have to click the extension button again to open my extension again, but this time its on my first panel.

I think have a close button on both panels will fix the second issue. If not what do you suggest?

I don’t see any option to not have a panel close when you change focus away from it.

What about an if statement in the index.js file?

No, as the panel API doesn’t offer any such option at all, that’s what I meant.

Okay, is it possible to at least keep the panel open?

No, there is no option for anything like that.