From: Ardis Lu Date: Fri, 6 Jun 2025 03:42:29 +0000 (-0700) Subject: Fix bug where clear-code button does not disappear after input is manually cleared X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=3ee5ab7bce399bec718610b79542cc82231c5372;p=event-hashes Fix bug where clear-code button does not disappear after input is manually cleared The early return was preventing the state from being reset. --- diff --git a/index.html b/index.html index fae6ad4..bd792bb 100644 --- a/index.html +++ b/index.html @@ -417,6 +417,7 @@ // Input has been cleared, reset back to default state if (textarea.value === '') { + document.querySelector('#clear-code').style.display = 'none'; return; }