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

View File

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

View File

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