Skip to content

Commit 0d4b35f

Browse files
committed
fix(vdom): remove unnecessary sameVnode condition
fix #9168
1 parent 5d721a4 commit 0d4b35f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/core/vdom/patch.js

-7
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,13 @@ export const emptyNode = new VNode('', {}, [])
3232

3333
const hooks = ['create', 'activate', 'update', 'remove', 'destroy']
3434

35-
function childrenIgnored (vnode) {
36-
return vnode && vnode.data && vnode.data.domProps && (
37-
vnode.data.domProps.innerHTML || vnode.data.domProps.textContent
38-
)
39-
}
40-
4135
function sameVnode (a, b) {
4236
return (
4337
a.key === b.key && (
4438
(
4539
a.tag === b.tag &&
4640
a.isComment === b.isComment &&
4741
isDef(a.data) === isDef(b.data) &&
48-
!childrenIgnored(a) && !childrenIgnored(b) &&
4942
sameInputType(a, b)
5043
) || (
5144
isTrue(a.isAsyncPlaceholder) &&

0 commit comments

Comments
 (0)