diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 0798275e7a..db9ef1c329 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -13,8 +13,7 @@ export let bindableProperties export let value = "" export let bindingDrawer - - let validity = true + export let valid = true $: value && checkValid() $: bindableProperties = getBindableProperties( @@ -25,7 +24,7 @@ function checkValid() { // TODO: need to convert the value to the runtime binding const runtimeBinding = readableToRuntimeBinding(bindableProperties, value) - validity = isValid(runtimeBinding) + valid = isValid(runtimeBinding) } function addToText(readableBinding) { @@ -75,7 +74,7 @@ bind:value placeholder="Add text, or click the objects on the left to add them to the textbox." /> - {#if !validity} + {#if !valid}
Current Handlebars syntax is invalid, please check the guide here diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte index be5563143b..a260789b5e 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte @@ -21,6 +21,7 @@ let bindingDrawer let temporaryBindableValue = value let anchor + let valid $: bindableProperties = getBindableProperties( $currentAsset.props, @@ -90,10 +91,11 @@