문제

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