From 24ad69346a2cda83ee21dddeacd3835fd3221d4c Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Fri, 6 Jan 2023 12:36:23 -0300 Subject: [PATCH] [FIX] Opening search field after server list does not hide server list (#4792) * [FIX] Opening search field after server list does not hide server list * minor tweak --- app/views/RoomsListView/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index 3ff5ff6a6..ce1ac8004 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -593,8 +593,11 @@ class RoomsListView extends React.Component { logEvent(events.RL_SEARCH); - const { dispatch } = this.props; + const { dispatch, showServerDropdown } = this.props; this.internalSetState({ searching: true }, () => { + if (showServerDropdown) { + dispatch(closeServerDropdown()); + } dispatch(openSearchHeader()); this.handleSearch(''); this.setHeader();