[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
c6314ea9a2
commit
275c3a9e36
|
@ -593,8 +593,11 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
|
||||||
|
|
||||||
initSearching = () => {
|
initSearching = () => {
|
||||||
logEvent(events.RL_SEARCH);
|
logEvent(events.RL_SEARCH);
|
||||||
const { dispatch } = this.props;
|
const { dispatch, showServerDropdown } = this.props;
|
||||||
this.internalSetState({ searching: true }, () => {
|
this.internalSetState({ searching: true }, () => {
|
||||||
|
if (showServerDropdown) {
|
||||||
|
dispatch(closeServerDropdown());
|
||||||
|
}
|
||||||
dispatch(openSearchHeader());
|
dispatch(openSearchHeader());
|
||||||
this.handleSearch('');
|
this.handleSearch('');
|
||||||
this.setHeader();
|
this.setHeader();
|
||||||
|
|
Loading…
Reference in New Issue