Fix copilot modal (cherry-pick #9613) (#9615)
gcp-cherry-pick-bot[bot]
and
Conrad Irwin
created
Cherry-picked Fix copilot modal (#9613)
Release Notes:
- Fixed copilot modal not responding
([#9596](https://github.com/zed-industries/zed/issues/9596)). (preview
only)
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Change summary
crates/copilot_ui/src/sign_in.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Detailed changes
@@ -194,9 +194,8 @@ impl Render for CopilotCodeVerification {
.on_action(cx.listener(|_, _: &menu::Cancel, cx| {
cx.emit(DismissEvent);
}))
- .capture_any_mouse_down(cx.listener(|this, _: &MouseDownEvent, cx| {
+ .on_any_mouse_down(cx.listener(|this, _: &MouseDownEvent, cx| {
cx.focus(&this.focus_handle);
- cx.stop_propagation();
}))
.child(
svg()