Skip to content

Commit 5b80d05

Browse files
committed
skip transition on non-elements
1 parent cdc0bc9 commit 5b80d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/web/runtime/modules/transition.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function enter (vnode: VNodeWithData) {
2727
}
2828

2929
/* istanbul ignore if */
30-
if (el._enterCb) {
30+
if (el._enterCb || el.nodeType !== 1) {
3131
return
3232
}
3333

@@ -135,7 +135,7 @@ export function leave (vnode: VNodeWithData, rm: Function) {
135135
}
136136

137137
/* istanbul ignore if */
138-
if (el._leaveCb) {
138+
if (el._leaveCb || el.nodeType !== 1) {
139139
return
140140
}
141141

0 commit comments

Comments
 (0)