Skip to content

Commit

Permalink
Merge pull request #91 from w3c/fix-buttons
Browse files Browse the repository at this point in the history
Fix buttons, 'expand all' should only expand all in section
  • Loading branch information
jnurthen authored Mar 16, 2023
2 parents b1219af + 4885f6a commit b3b7981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/mapping-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ document.addEventListener("DOMContentLoaded", () => {

document.querySelectorAll('button.expand').forEach(function (b){
b.addEventListener('click', function () {
detailsContainer = b.parentElement.querySelector('.details');
detailsContainer = b.parentElement;
expandCollapseDetails(detailsContainer, 'expand');
b.disabled = true;
b.parentElement
Expand All @@ -260,7 +260,7 @@ document.addEventListener("DOMContentLoaded", () => {

document.querySelectorAll('button.collapse').forEach(function (b){
b.addEventListener('click', function () {
detailsContainer = b.parentElement.querySelector('.details');
detailsContainer = b.parentElement;
expandCollapseDetails(detailsContainer, 'collapse');
b.disabled = true;
b.parentElement
Expand Down

0 comments on commit b3b7981

Please sign in to comment.