Compare commits

...

2 Commits

Author SHA1 Message Date
nyx
0d56443ea8
Merge 5386cb7f84 into 79eb752552 2024-10-08 23:40:02 +01:00
nyx
5386cb7f84
clear the search bar if the user changes categories 2024-10-03 22:59:35 -04:00
2 changed files with 5 additions and 0 deletions

View File

@ -158,4 +158,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

@ -726,6 +726,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();
} }