File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/platforms/web/runtime/modules Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ export function enter (vnode: VNodeWithData) {
20
20
el . _leaveCb ( )
21
21
}
22
22
23
- if ( el . _enterCb ) {
23
+ const data = resolveTransition ( vnode . data . transition )
24
+ if ( ! data ) {
24
25
return
25
26
}
26
27
27
- const data = resolveTransition ( vnode . data . transition )
28
- if ( ! data ) {
28
+ /* istanbul ignore if */
29
+ if ( el . _enterCb ) {
29
30
return
30
31
}
31
32
@@ -116,15 +117,16 @@ export function leave (vnode: VNodeWithData, rm: Function) {
116
117
el . _enterCb ( )
117
118
}
118
119
119
- if ( el . _leaveCb ) {
120
- return
121
- }
122
-
123
120
const data = resolveTransition ( vnode . data . transition )
124
121
if ( ! data ) {
125
122
return rm ( )
126
123
}
127
124
125
+ /* istanbul ignore if */
126
+ if ( el . _leaveCb ) {
127
+ return
128
+ }
129
+
128
130
const {
129
131
css,
130
132
leaveClass,
You can’t perform that action at this time.
0 commit comments