TF-900 fix not correct search result when close search box

This commit is contained in:
sherlock
2022-10-31 17:13:51 +07:00
committed by Dat H. Pham
parent 1b4ff83326
commit 93afb42c1b
5 changed files with 31 additions and 4 deletions
@@ -422,6 +422,11 @@ class MailboxDashBoardController extends ReloadableController {
&& dashboardRoute.value == DashboardRoutes.emailDetailed;
}
void clearSearchEmail() {
dispatchAction(ClearSearchEmailAction());
searchController.disableSearch();
}
void _unSelectedMailbox() {
selectedMailbox.value = null;
}
@@ -157,7 +157,6 @@ class SearchController extends BaseController {
searchInputController.clear();
cleanSearchFilter();
searchFocus.unfocus();
searchState.value = searchState.value.disableSearchState();
}
});
}