fix(ui): enforce canonical inspector selects
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user