Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui: Fix GPUI prompts from bleeding clicks into lower windows (#41442)

tidely4bd4d7627602
diff --git a/crates/gpui/src/window/prompts.rs b/crates/gpui/src/window/prompts.rs
index 778ee1dab0e..63ad1668bec 100644
--- a/crates/gpui/src/window/prompts.rs
+++ b/crates/gpui/src/window/prompts.rs
@@ -142,6 +142,7 @@ impl Render for FallbackPromptRenderer {
.id(ix)
.on_click(cx.listener(move |_, _, _, cx| {
cx.emit(PromptResponse(ix));
+ cx.stop_propagation();
}))
}));