Skip to content

Commit

Permalink
search results counter fix (w3f#4518)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfarok authored Feb 27, 2023
1 parent c48293a commit c0e6c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Metadata.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ function Search() {
matchCount += 1;
} else { item.style.background = "transparent"; }
}
document.getElementById("searchCount").innerText = matchCount;
div.style.maxHeight = "100%";
button.innerText = "-";
} else {
for (let item of searchable) { item.style.background = "transparent"; }
div.style.maxHeight = "0px";
button.innerText = "+";
}
document.getElementById("searchCount").innerText = matchCount;
});
ToggleLoading("searchResults", false);
}
Expand Down

0 comments on commit c0e6c32

Please sign in to comment.