Skip to content

Commit fc78242

Browse files
committed
invoke remove hook before destroy hook (fix #3481)
1 parent 3bd7e58 commit fc78242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/vdom/patch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ export function createPatchFunction (backend) {
213213
const ch = vnodes[startIdx]
214214
if (isDef(ch)) {
215215
if (isDef(ch.tag)) {
216-
invokeDestroyHook(ch)
217216
removeAndInvokeRemoveHook(ch)
217+
invokeDestroyHook(ch)
218218
} else { // Text node
219219
nodeOps.removeChild(parentElm, ch.elm)
220220
}

0 commit comments

Comments
 (0)