Vivek
Vivek

Reputation: 700

Close Safari popover using button click within popover

I am working on a Safari extension which displays a popover on clicking the toolbar button. I have added 2 buttons in the popover cancel and save. I want to dismiss the popover on clicking the buttons. How can I do this?

I tried using self.close() but once I click on any of the buttons, the popover closes but is not displayed again on clicking the toolbar. (The toolbar button does not register the click).

Upvotes: 5

Views: 1664

Answers (1)

chulster
chulster

Reputation: 2829

Try safari.self.hide() instead.

Upvotes: 16

Related Questions