Small update to allow class directives to work in IE11 where second argument of classList.toggle is not respected

pull/7738/head
Jonathan Greenemeier 7 years ago
parent dafc9b5d85
commit 10aebcdae2

@ -239,5 +239,5 @@ export function addResizeListener(element, fn) {
}
export function toggleClass(element, name, toggle) {
element.classList.toggle(name, !!toggle);
element.classList[toggle ? 'add' : 'remove'](name);
}

Loading…
Cancel
Save