Skip to content

Commit

Permalink
Merge pull request #1988 from gsmet/fix-collapse
Browse files Browse the repository at this point in the history
Fix collapsing when there are several keys
  • Loading branch information
gsmet authored May 22, 2024
2 parents 62496ff + 52add55 commit f7fbeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _guides/javascript/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f7fbeb8

Please sign in to comment.