mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +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,
|
results,
|
||||||
noResults: results.length === 0,
|
noResults: results.length === 0,
|
||||||
});
|
});
|
||||||
this.props.marker.mark(term);
|
|
||||||
|
if (results.length > 0) {
|
||||||
|
this.props.marker.mark(term);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
|
|
Loading…
Reference in New Issue
Block a user