Skip to content

Commit

Permalink
fix: vue2 does not need to normalize ref
Browse files Browse the repository at this point in the history
  • Loading branch information
nooooooom committed Feb 6, 2023
1 parent 27262c6 commit 11fddaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/forwardRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function createInnerComponent(component: any, parent: ComponentInternalInstance)
}

function normalizeRef(ref: any, instance: ComponentInternalInstance) {
if (isVue2) return ref
return ref != null
? isString(ref) || isRef(ref) || isFunction(ref)
? { i: instance, r: ref, k: undefined, f: false }
Expand Down

0 comments on commit 11fddaf

Please sign in to comment.