mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 13:20:19 +03:00
Only mark the term when there is result from search.
This commit is contained in:
parent
2474b76d0d
commit
272fff0ce5
|
@ -102,7 +102,10 @@ export class SearchBox extends React.PureComponent<SearchBoxProps, SearchBoxStat
|
|||
results,
|
||||
noResults: results.length === 0,
|
||||
});
|
||||
this.props.marker.mark(term);
|
||||
|
||||
if (results.length > 0) {
|
||||
this.props.marker.mark(term);
|
||||
}
|
||||
}
|
||||
|
||||
@bind
|
||||
|
|
Loading…
Reference in New Issue
Block a user