From 3ee5ab7bce399bec718610b79542cc82231c5372 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 5 Jun 2025 20:42:29 -0700 Subject: [PATCH] Fix bug where clear-code button does not disappear after input is manually cleared The early return was preventing the state from being reset. --- index.html | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3