🚸 Clear search results when wrapper dismissed

Fixes #109
pull/110/head
James Panther 2022-02-08 08:50:06 +11:00
parent d8c2534762
commit 027cdf071d
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
- Main content area not growing to fill screen vertically
- Search results not cleared when search is dismissed ([#109](https://github.com/jpanther/congo/pull/109))
## [2.0.3] - 2022-02-07

View File

@ -84,6 +84,8 @@ function hideSearch() {
if (searchVisible) {
document.body.style.overflow = "visible";
wrapper.style.visibility = "hidden";
input.value = "";
output.innerHTML = "";
document.activeElement.blur();
searchVisible = false;
}