Skip to content

Commit

Permalink
fix: toggle hidden attribute properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed Feb 12, 2021
1 parent a17c5d8 commit bbb68f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sage-system/lib/accordion-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Sage.accordion = (function () {
// Toggle target
const toggle = el.getAttribute('aria-expanded') === 'true';
el.setAttribute('aria-expanded', !toggle);
el.nextElementSibling.hidden = false;
el.nextElementSibling.hidden = toggle;
}

function init(el) {
Expand Down

0 comments on commit bbb68f6

Please sign in to comment.