From 99e7bf72849238868335899eebd48d9f3408955a Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Wed, 23 Oct 2024 20:28:07 +0100 Subject: [PATCH] hide button when set to hidden --- web/js/imageFeed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/js/imageFeed.js b/web/js/imageFeed.js index 1ebd2a5..c51f0c7 100644 --- a/web/js/imageFeed.js +++ b/web/js/imageFeed.js @@ -301,6 +301,9 @@ app.registerExtension({ onChange(value) { if (value === "hidden") { imageFeed.remove(); + if (showMenuButton) { + showMenuButton.element.style.display = "none"; + } showButton.style.display = "none"; } else { showButton.style.display = visible ? "none" : "unset";