mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Lint semis
This commit is contained in:
parent
8773d67df7
commit
bb18e677f9
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ export default class RoomSearch extends React.PureComponent<IProps, IState> {
|
||||||
private clearInput = () => {
|
private clearInput = () => {
|
||||||
if (!this.inputRef.current) return;
|
if (!this.inputRef.current) return;
|
||||||
this.inputRef.current.value = "";
|
this.inputRef.current.value = "";
|
||||||
defaultDispatcher.dispatch({action: Action.StopRoomFilter})
|
defaultDispatcher.dispatch({action: Action.StopRoomFilter});
|
||||||
this.onChange();
|
this.onChange();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -104,13 +104,13 @@ export default class RoomSearch extends React.PureComponent<IProps, IState> {
|
||||||
this.setState({focused: true});
|
this.setState({focused: true});
|
||||||
ev.target.select();
|
ev.target.select();
|
||||||
if (ev.target.value === "") {
|
if (ev.target.value === "") {
|
||||||
defaultDispatcher.dispatch({action: Action.StartRoomFilter})
|
defaultDispatcher.dispatch({action: Action.StartRoomFilter});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private onBlur = (ev: React.FocusEvent<HTMLInputElement>) => {
|
private onBlur = (ev: React.FocusEvent<HTMLInputElement>) => {
|
||||||
if (ev.target.value === "") {
|
if (ev.target.value === "") {
|
||||||
defaultDispatcher.dispatch({action: Action.StopRoomFilter})
|
defaultDispatcher.dispatch({action: Action.StopRoomFilter});
|
||||||
}
|
}
|
||||||
this.setState({focused: false});
|
this.setState({focused: false});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue