diff --git a/src/components/structures/RoomSearch.tsx b/src/components/structures/RoomSearch.tsx index 349025782d..dad05fb577 100644 --- a/src/components/structures/RoomSearch.tsx +++ b/src/components/structures/RoomSearch.tsx @@ -76,7 +76,7 @@ export default class RoomSearch extends React.PureComponent { private clearInput = () => { if (!this.inputRef.current) return; this.inputRef.current.value = ""; - defaultDispatcher.dispatch({action: Action.StopRoomFilter}) + defaultDispatcher.dispatch({action: Action.StopRoomFilter}); this.onChange(); }; @@ -104,13 +104,13 @@ export default class RoomSearch extends React.PureComponent { this.setState({focused: true}); ev.target.select(); if (ev.target.value === "") { - defaultDispatcher.dispatch({action: Action.StartRoomFilter}) + defaultDispatcher.dispatch({action: Action.StartRoomFilter}); } }; private onBlur = (ev: React.FocusEvent) => { if (ev.target.value === "") { - defaultDispatcher.dispatch({action: Action.StopRoomFilter}) + defaultDispatcher.dispatch({action: Action.StopRoomFilter}); } this.setState({focused: false}); };