[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
This commit is contained in:
parent
8102bef1d0
commit
24ad69346a
|
@ -593,8 +593,11 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
|
|||
|
||||
initSearching = () => {
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue