From 20280ed445b7fad346027aa028cd0fefff23ee2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 28 Aug 2026 22:16:36 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(web):=20the=20dropdown=20clo?= =?UTF-8?q?ses=20alone,=20the=20modal=20stays?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Escape on an open dropdown panel was closing the whole task modal: the manager had the modal chain (90) above the dropdown (50). The old per-script listeners made this edge path-dependent — a modal swapped in softly registered last and lost to the dropdown, a full ?task= load registered first and won — which is why every point fix tuned for one path broke the other. The registry pins the correct order: dropdown 95, above the modal chain. Browser-proofed: nine Escape scenarios (modal, popover, datepick, dropdown, card menu, user menu, rules composer, and both layered collisions) pass in headless Chromium. --- crates/izlek-web/src/dropdown.rs | 13 +++++++++---- crates/izlek-web/src/layout.rs | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/crates/izlek-web/src/dropdown.rs b/crates/izlek-web/src/dropdown.rs index 2b387a7..e67f3d7 100644 --- a/crates/izlek-web/src/dropdown.rs +++ b/crates/izlek-web/src/dropdown.rs @@ -18,9 +18,14 @@ use topcoat::view::{Unescaped, view}; /// Emitted once per page that renders a `