1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

Only replace bindings whenever value is primitive

This commit is contained in:
Conor Mack 2020-09-04 14:19:59 +01:00
parent 80fe2f917d
commit f27974c93a

View file

@ -67,7 +67,11 @@
innerVal = props.valueKey ? v.target[props.valueKey] : v.target.value
}
}
replaceBindings(innerVal)
if (typeof innerVal !== "object") {
replaceBindings(innerVal)
} else {
onChange(key, innerVal)
}
}
const safeValue = () => {