File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -316,15 +316,14 @@ export const setRef = (
316
316
if ( ! vnode ) {
317
317
// means unmount
318
318
value = null
319
- } else {
319
+ } else if ( isAsyncWrapper ( vnode ) ) {
320
320
// when mounting async components, nothing needs to be done,
321
321
// because the template ref is forwarded to inner component
322
- if ( isAsyncWrapper ( vnode ) ) return
323
- if ( vnode . shapeFlag & ShapeFlags . STATEFUL_COMPONENT ) {
324
- value = vnode . component ! . exposed || vnode . component ! . proxy
325
- } else {
326
- value = vnode . el
327
- }
322
+ return
323
+ } else if ( vnode . shapeFlag & ShapeFlags . STATEFUL_COMPONENT ) {
324
+ value = vnode . component ! . exposed || vnode . component ! . proxy
325
+ } else {
326
+ value = vnode . el
328
327
}
329
328
330
329
const { i : owner , r : ref } = rawRef
You can’t perform that action at this time.
0 commit comments