diff --git a/src/app.rs b/src/app.rs index 8763081..ef9f54f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1111,6 +1111,9 @@ impl Application for App { } fn on_nav_select(&mut self, entity: Entity) -> Command { + self.search_active = false; + self.search_input.clear(); + self.nav_model.activate(entity); if let Some(location) = self.nav_model.data::(entity) { let message = Message::TabMessage(None, tab::Message::Location(location.clone())); @@ -1122,7 +1125,6 @@ impl Application for App { return mounter.mount(data.1.clone()).map(|_| message::none()); } } - Command::none() }