Skip to content

Commit

Permalink
ui: Remove track_focus method from Picker render (#25043)
Browse files Browse the repository at this point in the history
Follow-up to: #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
  • Loading branch information
danilo-leal authored Feb 17, 2025
1 parent e068c7b commit 62a11b0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/picker/src/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,6 @@ impl<D: PickerDelegate> Render for Picker<D> {
.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;
Expand Down

0 comments on commit 62a11b0

Please sign in to comment.