1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Lint semis

This commit is contained in:
Jorik Schellekens
2020-07-08 18:05:07 +01:00
parent 8773d67df7
commit bb18e677f9

View File

@@ -76,7 +76,7 @@ export default class RoomSearch extends React.PureComponent<IProps, IState> {
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<IProps, IState> {
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<HTMLInputElement>) => {
if (ev.target.value === "") {
defaultDispatcher.dispatch({action: Action.StopRoomFilter})
defaultDispatcher.dispatch({action: Action.StopRoomFilter});
}
this.setState({focused: false});
};