fix(ui): enforce canonical inspector selects

This commit is contained in:
Codex
2026-07-16 18:56:20 +03:00
parent 751d9963f1
commit a1c4ecaa93
19 changed files with 258 additions and 135 deletions
+3
View File
@@ -73,6 +73,9 @@ export function ShareAccessModal<Role extends string>({
};
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key !== "Escape") return;
// An open nested dropdown owns the first Escape press. Let it close and
// restore focus without collapsing the surrounding members disclosure.
if (document.querySelector(".nodedc-dropdown-surface")) return;
event.preventDefault();
event.stopImmediatePropagation();
setMembersOpen(false);