UPG-100 batch selection: release Copy / Export CSV's last-text hooks with the map's other window hooks on unmount

This commit is contained in:
Doxa Maps 2026-09-30 20:54:55 +00:00
parent 76f9b6419f
commit 0f824f24cf

View file

@ -3088,6 +3088,9 @@ onBeforeUnmount(() => {
if (window.__UPG_SEARCH__ === _mySearchHandle) delete window.__UPG_SEARCH__
if (window.__UPG_MAP__ === _myMapHandle) delete window.__UPG_MAP__
if (window.__UPG_SELECT__ === _mySelectHandle) delete window.__UPG_SELECT__
// Copy / Export CSV's last text (the gates read them back); released with the rest of this map's hooks.
delete window.__UPG_LAST_CLIPBOARD__
delete window.__UPG_LAST_CSV__
} catch (_) { /* a frozen or cross-origin window must not break teardown */ }
}
})