From 21d9b54953c18c13bb6b391f7b0f6aabb099029f Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 13 Sep 2026 18:44:34 -0400 Subject: [PATCH] Fix deploy modal closing when opening the map dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bounding-rect click-outside check treated native dropdown + // options that render below the modal and closes the whole thing. function onDialogClick(e: MouseEvent): void { - if (!dialog) return; - const rect = dialog.getBoundingClientRect(); - const inDialog = - e.clientX >= rect.left && e.clientX <= rect.right && - e.clientY >= rect.top && e.clientY <= rect.bottom; - if (!inDialog) close(); + if (e.target === dialog) close(); } let selectedMap = $derived(maps.find((m) => m.slug === mapSlug));