From ffe0fa8a53a10572ca555ae61fb6a720da7ff4cb Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 7 Nov 2020 08:44:23 +0000 Subject: [PATCH] JENKINS-64040 JENKINS-64136 Fix hidden page elements from radio blocks showing up when they shouldn't (#5046) --- core/src/main/resources/lib/form/radioBlock/radioBlock.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/main/resources/lib/form/radioBlock/radioBlock.js b/core/src/main/resources/lib/form/radioBlock/radioBlock.js index 45c83dba8f..75d87b66f1 100644 --- a/core/src/main/resources/lib/form/radioBlock/radioBlock.js +++ b/core/src/main/resources/lib/form/radioBlock/radioBlock.js @@ -18,13 +18,7 @@ var radioBlockSupport = { n = blockStart; } while((n = n.next()) != blockEnd) { - if (show) { - n.style.visibility = "visible"; - n.style.position = "static"; - } else { - n.style.visibility = "hidden"; - n.style.position = "absolute"; - } + n.style.display = show ? "" : "none"; } layoutUpdateCallback.call(); }