Permalink
Browse files

fix(expandable): expandable-trigger now uses closest-function to get …

…parent element
  • Loading branch information...
lara-aigmueller committed Sep 12, 2016
1 parent a60f5f9 commit 552bc69767f80e8281fe8203c4c932db6a2a7c1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/expandable/expandable.js
@@ -8,7 +8,7 @@ const init = () => {
el.addEventListener('click', (ev) => {
ev.preventDefault();
ev.stopPropagation();
el.parentNode.classList.toggle(toggleClass);
el.closest('.expandable').classList.toggle(toggleClass);
});
el.setAttribute('data-initialized', true);
}

0 comments on commit 552bc69

Please sign in to comment.