Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ae8b752

Browse files
committed
Balance out the throttle
1 parent 6c4c581 commit ae8b752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/structures/RoomSearch.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export default class RoomSearch extends React.PureComponent<IProps, IState> {
8383

8484
// it wants this at the top of the file, but we know better
8585
// tslint:disable-next-line
86-
private onSearchUpdated = throttle(() => {
86+
private onSearchUpdated = throttle(
87+
() => {
8788
// We can't use the state variable because it can lag behind the input.
8889
// The lag is most obvious when deleting/clearing text with the keyboard.
8990
this.props.onQueryUpdate(this.inputRef.current.value);

0 commit comments

Comments
 (0)