This commit is contained in:
nyx 2024-10-08 23:40:02 +01:00 committed by GitHub
commit 0d56443ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -158,4 +158,8 @@ impl Filter {
self.search_input.remove(current);
}
}
pub fn clear_search(&mut self) {
self.search_input.clear();
self.input_position = 0;
}
}

View File

@ -726,6 +726,7 @@ impl AppState {
.root()
.id()];
self.selection.select(Some(0));
self.filter.clear_search();
self.update_items();
}