From 7d76d6dab0728372b60e42ae9e2bbea781939d25 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 22 May 2024 11:05:35 +0200 Subject: [PATCH] Fix collapsing when there are several keys --- docs/src/main/asciidoc/javascript/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/javascript/config.js b/docs/src/main/asciidoc/javascript/config.js index 430d85b7318d5..26107d70d9b52 100644 --- a/docs/src/main/asciidoc/javascript/config.js +++ b/docs/src/main/asciidoc/javascript/config.js @@ -24,7 +24,7 @@ if(tables){ const decoration = td.firstElementChild.lastElementChild.firstElementChild; const iconDecoration = decoration.children.item(0); const collapsibleSpan = decoration.children.item(1); - const descDiv = td.firstElementChild.children.item(1); + const descDiv = td.firstElementChild.querySelector(".description"); const collapsibleHandler = makeCollapsibleHandler(descDiv, td, row, collapsibleSpan, iconDecoration); row.addEventListener('click', collapsibleHandler); }