From f0ed846e787524e796deb43db3efa7bd21816d0a Mon Sep 17 00:00:00 2001 From: Xenia Lu Date: Fri, 15 Dec 2017 10:22:18 +0800 Subject: [PATCH] IE does not support multiple arguments for classList.add() and classList.remove() --- src/Expanding.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Expanding.vue b/src/Expanding.vue index 4bf0062..8c0ba47 100644 --- a/src/Expanding.vue +++ b/src/Expanding.vue @@ -20,11 +20,13 @@ export default { }, afterEnter (el) { el.classList.remove('collapsing') - el.classList.add('collapse', 'in') + el.classList.add('collapse') + el.classList.add('in') }, beforeLeave (el) { el.classList.add('collapsing') - el.classList.remove('collapse', 'in') + el.classList.remove('collapse') + el.classList.remove('in') el.style.height = 0 }, afterLeave (el) {