From 62a11b047dcbc201e0dc7930477ea2dd9151239f Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 17 Feb 2025 19:18:12 -0300 Subject: [PATCH] ui: Remove `track_focus` method from Picker render (#25043) Follow-up to: https://github.com/zed-industries/zed/pull/25025 Removing the `track_focus` method fix the focus hijack that we introduced in the previous PR. cc @0xtimsb Also, I don't see any immediate affect in the actual scrollbar behavior without this! Holler if that's not the case. Release Notes: - N/A --- crates/picker/src/picker.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/picker/src/picker.rs b/crates/picker/src/picker.rs index a82b46012d..0a4bf14c56 100644 --- a/crates/picker/src/picker.rs +++ b/crates/picker/src/picker.rs @@ -814,7 +814,6 @@ impl Render for Picker { .overflow_hidden() .children(self.delegate.render_header(window, cx)) .child(self.render_element_container(cx)) - .track_focus(&self.focus_handle(cx)) .on_hover(cx.listener(|this, hovered, window, cx| { if *hovered { this.scrollbar_visibility = true;