From 25d53f09bbf55412a003eabb7a390dc8434f8987 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 7 Oct 2020 17:49:03 -0400 Subject: [PATCH] fix(runtime-core/template-refs): do not reset refs object before updates fix #2283 --- packages/runtime-core/src/renderer.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 37f5a2ed7d3..3baea539a87 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -1456,11 +1456,6 @@ function baseCreateRenderer( const prevTree = instance.subTree instance.subTree = nextTree - // reset refs - // only needed if previous patch had refs - if (instance.refs !== EMPTY_OBJ) { - instance.refs = {} - } if (__DEV__) { startMeasure(instance, `patch`) }