We're trying to have multiple popovers in our extension and we need to know when the popover closes so we can change the popover value on the button.

Is there any listener for that?

有帮助吗?

解决方案

When the popover is closed, the window object receives a blur event.

So, something like this in the popover will work:

window.onblur = function () {
    // do stuff when popover is closed
};
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top