mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 06:34:53 +03:00
minor fix
This commit is contained in:
parent
0a68db1f38
commit
4459f4cda2
|
@ -95,13 +95,12 @@ export class SearchBox extends React.PureComponent<SearchBoxProps, SearchBoxStat
|
||||||
setResults(results: SearchResult[], term: string) {
|
setResults(results: SearchResult[], term: string) {
|
||||||
this.setState({
|
this.setState({
|
||||||
results,
|
results,
|
||||||
term,
|
|
||||||
});
|
});
|
||||||
this.props.marker.mark(term);
|
this.props.marker.mark(term);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
@debounce(300)
|
@debounce(400)
|
||||||
searchCallback(searchTerm: string) {
|
searchCallback(searchTerm: string) {
|
||||||
this.props.search.search(searchTerm).then(res => {
|
this.props.search.search(searchTerm).then(res => {
|
||||||
this.setResults(res, searchTerm);
|
this.setResults(res, searchTerm);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user