From 20ed27cfea0f01ff494c9213d56fb006771a1f43 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Mon, 15 Nov 2021 19:57:52 +0000 Subject: [PATCH] Update hudson-behavior.js --- war/src/main/webapp/scripts/hudson-behavior.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 9bda8abc9ce4..57a5323ea92a 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1284,7 +1284,8 @@ function rowvgStartEachRow(recursive,f) { // this is suffixed by a pointless string so that two processing for optional-block-start // can sandwich row-set-end // this requires "TR.row-set-end" to mark rows - var checkbox = e.down().down(); + // Get the `input` from the checkbox container + var checkbox = e.querySelector("input[type='checkbox']") updateOptionalBlock(checkbox,false); });