1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

Merge pull request #574 from Budibase/bugfix/replace-bindings

Only replace bindings whenever value is primitive
This commit is contained in:
Conor_Mack 2020-09-04 15:02:17 +01:00 committed by GitHub
commit 9d45de1d28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = () => {