Skip to content

Commit

Permalink
fix(transition-group): handle multiple move-classes (#679)
Browse files Browse the repository at this point in the history
fix #678
  • Loading branch information
jonaskuske authored Feb 10, 2020
1 parent 430d4e1 commit 5495c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/runtime-dom/src/components/TransitionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,11 @@ function hasCSSTransform(
// is applied.
const clone = el.cloneNode() as HTMLElement
if (el._vtc) {
el._vtc.forEach(cls => clone.classList.remove(cls))
el._vtc.forEach(cls => {
cls.split(/\s+/).forEach(c => c && clone.classList.remove(c))
})
}
clone.classList.add(moveClass)
moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c))
clone.style.display = 'none'
const container = (root.nodeType === 1
? root
Expand Down

0 comments on commit 5495c70

Please sign in to comment.