mirror of
https://github.com/status-im/ETHReport.git
synced 2025-02-03 18:13:59 +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 });
|
||||
}
|
||||
|
||||
// Throttle search result frequency with debounce
|
||||
// Throttle search result frequency with debounce while typing
|
||||
getSearchResults(term);
|
||||
}
|
||||
|
||||
@ -65,10 +65,14 @@ class BrowseArchives extends React.Component {
|
||||
}
|
||||
|
||||
setSearchTerm = (event) => {
|
||||
const { term } = this.state;
|
||||
|
||||
this.setState({
|
||||
term: event.target.innerText,
|
||||
isSearchActive: true,
|
||||
});
|
||||
|
||||
this.getSearchResults(term);
|
||||
}
|
||||
|
||||
clearSearchInput = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user