File tree 1 file changed +7
-4
lines changed
src/platforms/web/runtime/components
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ export default {
94
94
}
95
95
96
96
children . forEach ( c => {
97
+ /* istanbul ignore if */
97
98
if ( c . elm . _moveCb ) {
98
99
c . elm . _moveCb ( )
99
100
}
@@ -119,10 +120,12 @@ export default {
119
120
addTransitionClass ( el , moveClass )
120
121
s . transform = s . WebkitTransform = s . transitionDuration = ''
121
122
el . _moveDest = c . data . pos
122
- el . addEventListener ( transitionEndEvent , el . _moveCb = function cb ( ) {
123
- el . removeEventListener ( transitionEndEvent , cb )
124
- el . _moveCb = null
125
- removeTransitionClass ( el , moveClass )
123
+ el . addEventListener ( transitionEndEvent , el . _moveCb = function cb ( e ) {
124
+ if ( ! e || / t r a n s f o r m $ / . test ( e . propertyName ) ) {
125
+ el . removeEventListener ( transitionEndEvent , cb )
126
+ el . _moveCb = null
127
+ removeTransitionClass ( el , moveClass )
128
+ }
126
129
} )
127
130
}
128
131
} )
You can’t perform that action at this time.
0 commit comments