From f27974c93ad45a34df3a327a761def2088bc772a Mon Sep 17 00:00:00 2001 From: Conor Mack Date: Fri, 4 Sep 2020 14:19:59 +0100 Subject: [PATCH] Only replace bindings whenever value is primitive --- .../src/components/userInterface/PropertyControl.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte index be714b66c6..47f94107ed 100644 --- a/packages/builder/src/components/userInterface/PropertyControl.svelte +++ b/packages/builder/src/components/userInterface/PropertyControl.svelte @@ -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 = () => {