Skip to content

Commit

Permalink
Fix collapsing when there are several keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed May 22, 2024
1 parent fb4e0b1 commit e6f0ef9
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 e6f0ef9

Please sign in to comment.