Skip to content

Commit

Permalink
fix(transition): transition-group should only listen for first-level …
Browse files Browse the repository at this point in the history
…children's end events (#8374)
  • Loading branch information
verstoff authored and yyx990803 committed Oct 24, 2018
1 parent 96b833b commit 504d5da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platforms/web/runtime/components/transition-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export default {
addTransitionClass(el, moveClass)
s.transform = s.WebkitTransform = s.transitionDuration = ''
el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
if (e && e.target !== el) {
return
}
if (!e || /transform$/.test(e.propertyName)) {
el.removeEventListener(transitionEndEvent, cb)
el._moveCb = null
Expand Down

0 comments on commit 504d5da

Please sign in to comment.