Fix the outline panel's focus tracking (#20083)

Closes https://github.com/zed-industries/zed/issues/20073

Release Notes:

- Fixed outline panel navigation
([https://github.com/zed-industries/zed/issues/20073](#20073))

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Kirill Bulatov 2024-11-01 18:01:10 +02:00 committed by GitHub
parent a960344301
commit c8f1969916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4261,7 +4261,7 @@ impl Render for OutlinePanel {
}
}),
)
.track_focus(&self.focus_handle(cx))
.track_focus(&self.focus_handle)
.when_some(search_query, |outline_panel, search_state| {
outline_panel.child(
v_flex()