mirror of
https://github.com/status-im/ETHReport.git
synced 2025-02-10 05:24:47 +00:00
Updating search results on selecting topic/project
This commit is contained in:
parent
a1476ae199
commit
bc6e459dfe
@ -43,7 +43,7 @@ class BrowseArchives extends React.Component {
|
|||||||
this.setState({ isSearchActive: false });
|
this.setState({ isSearchActive: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Throttle search result frequency with debounce
|
// Throttle search result frequency with debounce while typing
|
||||||
getSearchResults(term);
|
getSearchResults(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,10 +65,14 @@ class BrowseArchives extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setSearchTerm = (event) => {
|
setSearchTerm = (event) => {
|
||||||
|
const { term } = this.state;
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
term: event.target.innerText,
|
term: event.target.innerText,
|
||||||
isSearchActive: true,
|
isSearchActive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.getSearchResults(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
clearSearchInput = () => {
|
clearSearchInput = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user