From 504d5da7eff1c77117c2f57b0c4238e56de80fc5 Mon Sep 17 00:00:00 2001 From: Vladimir Verstov Date: Thu, 25 Oct 2018 00:23:12 +0700 Subject: [PATCH] fix(transition): transition-group should only listen for first-level children's end events (#8374) --- src/platforms/web/runtime/components/transition-group.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platforms/web/runtime/components/transition-group.js b/src/platforms/web/runtime/components/transition-group.js index 2a23a15c312..1d960a208be 100644 --- a/src/platforms/web/runtime/components/transition-group.js +++ b/src/platforms/web/runtime/components/transition-group.js @@ -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