diff --git a/packages/builder/src/components/common/bindings/ModalBindableInput.svelte b/packages/builder/src/components/common/bindings/ModalBindableInput.svelte index e2d2a2741e..2a72d7a315 100644 --- a/packages/builder/src/components/common/bindings/ModalBindableInput.svelte +++ b/packages/builder/src/components/common/bindings/ModalBindableInput.svelte @@ -6,7 +6,6 @@ } from "builderStore/dataBinding" import ServerBindingPanel from "components/common/bindings/ServerBindingPanel.svelte" import { createEventDispatcher } from "svelte" - const dispatch = createEventDispatcher() export let panel = ServerBindingPanel export let value = "" @@ -16,12 +15,11 @@ export let placeholder export let label + const dispatch = createEventDispatcher() let bindingModal - let validity = true - + let valid = true $: readableValue = runtimeToReadableBinding(bindings, value) $: tempValue = readableValue - $: invalid = !validity const saveBinding = () => { onChange(tempValue) @@ -38,7 +36,7 @@ {label} {thin} value={readableValue} - on:change={event => onChange(event.target.value)} + on:change={event => onChange(event.detail)} {placeholder} />