chore(compiler-core): fix typo in transformElement (#4649) [ci skip]
This commit is contained in:
parent
bf267b1ce3
commit
1873f0f48c
@ -472,7 +472,7 @@ export function buildProps(
|
|||||||
hasRef = true
|
hasRef = true
|
||||||
// in inline mode there is no setupState object, so we can't use string
|
// in inline mode there is no setupState object, so we can't use string
|
||||||
// keys to set the ref. Instead, we need to transform it to pass the
|
// keys to set the ref. Instead, we need to transform it to pass the
|
||||||
// acrtual ref instead.
|
// actual ref instead.
|
||||||
if (!__BROWSER__ && context.inline && value?.content) {
|
if (!__BROWSER__ && context.inline && value?.content) {
|
||||||
valueNode = createFunctionExpression(['_value', '_refs'])
|
valueNode = createFunctionExpression(['_value', '_refs'])
|
||||||
valueNode.body = createBlockStatement(
|
valueNode.body = createBlockStatement(
|
||||||
|
Loading…
Reference in New Issue
Block a user