scroll to selected item when using type-to-select

This commit is contained in:
wowitsjack 2026-01-03 17:10:58 +10:00
parent 03ec21bdc9
commit 26634889dc
3 changed files with 14 additions and 1 deletions

View file

@ -3063,6 +3063,12 @@ impl Application for App {
if let Some(tab) = self.tab_model.data_mut::<Tab>(entity) {
tab.select_by_prefix(&self.type_select_prefix);
if let Some(offset) = tab.select_focus_scroll() {
return scrollable::scroll_to(
tab.scrollable_id.clone(),
offset,
);
}
}
}
}