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

pull/1868/head
Jonathan Greenemeier 6 years ago
parent 28dd6a899a
commit 9c3815f568

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

Loading…
Cancel
Save