From 09be9ed98e7b8aebebb3b7d9b0ab657c041e7e81 Mon Sep 17 00:00:00 2001 From: temportalflux Date: Fri, 10 Jul 2026 19:39:19 -0400 Subject: [PATCH] stop propagation of mouse events when clicking on editable text, so that users which consume click events on wrapping elements do not receive events when they are used to focus/update the editable text state --- crates/gpui_elements/src/editable_text/element.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/gpui_elements/src/editable_text/element.rs b/crates/gpui_elements/src/editable_text/element.rs index d9cd6d247c..9c0c4328d6 100644 --- a/crates/gpui_elements/src/editable_text/element.rs +++ b/crates/gpui_elements/src/editable_text/element.rs @@ -515,6 +515,7 @@ impl EditableTextElement { return; } + cx.stop_propagation(); window.focus(&focus_handle, cx); let text_position = event.position + to_local_position; @@ -533,6 +534,7 @@ impl EditableTextElement { return; } + cx.stop_propagation(); state.update(cx, |state, cx| { state.on_mouse_up(event, window, cx); });