Switch tooltip cleanup to a better fitting event

This commit is contained in:
nathan 2025-02-20 11:34:49 -07:00
parent 995be1c5d0
commit 9b69c8e95e

View File

@ -26,7 +26,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
"use strict";
const tooltipped = [];
_wnd.addEventListener("beforeunload", (e) =>
_wnd.addEventListener("unload", (e) =>
{
tooltipped.forEach(node =>
{
@ -37,6 +37,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
{
tooltipped.off();
}
return null;
})
let tooltip_div = null;