Skip to content

Commit

Permalink
Don't render previous search results
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Nov 19, 2024
1 parent ce3df1c commit 4fa36f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pdf/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ export default class Page {
}

_renderFindResults() {
if (!this.layer._findController) {
return;
}
if (!this.layer._findController.highlightMatches) {
if (!this.layer._findController
|| !this.layer._findController.highlightMatches
|| !this.layer._findController._matchesCountTotal
) {
return;
}
let { _pageMatchesPosition, selected } = this.layer._findController;
Expand Down

0 comments on commit 4fa36f6

Please sign in to comment.