fix(runtime-vapor): retrieve prop value from element
This commit is contained in:
parent
b7e6e1eceb
commit
94272c6163
|
@ -210,7 +210,7 @@ function getValue(
|
|||
instance: ComponentInternalInstance,
|
||||
) {
|
||||
const metadata = instance.metadata.get(el)
|
||||
return metadata ? metadata.props.value : el.value
|
||||
return (metadata && metadata.props.value) || el.value
|
||||
}
|
||||
|
||||
export const vModelCheckbox = {}
|
||||
|
|
Loading…
Reference in New Issue