fix(modal): fix desktop support modal positioning and bind close button (v22)

This commit is contained in:
2026-09-12 11:49:37 -07:00
parent c1228a8908
commit eed7c328ed
4 changed files with 79 additions and 58 deletions
+11
View File
@@ -2597,10 +2597,21 @@
openSupportModal();
});
}
if (el.supportCloseBtn) {
el.supportCloseBtn.addEventListener('click', (e) => {
e.preventDefault();
e.stopPropagation();
closeSupportModal();
});
}
if (el.supportModal) {
el.supportModal.addEventListener('click', e => {
if (e.target === el.supportModal) closeSupportModal();
});
el.supportModal.addEventListener('cancel', (e) => {
e.preventDefault();
closeSupportModal();
});
}
// Global listener for camera & portal inspection: NEVER switches views away from radar!