Only replace bindings whenever value is primitive

This commit is contained in:
Conor Mack 2020-09-04 14:19:59 +01:00
parent 07b6e1bfd4
commit 5f16fb84e2
1 changed files with 5 additions and 1 deletions

View File

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