From 8ec5e7f8ce97171ace62ed774a0427d64c9afa72 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Wed, 28 Jul 2021 11:30:57 +0200 Subject: [PATCH] revert change to event dispatcher --- .../PropertyControls/PropertyControl.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte index 7629afa40d..40d579e9c9 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte @@ -8,7 +8,6 @@ } from "builderStore/dataBinding" import BindingPanel from "components/common/bindings/BindingPanel.svelte" import { capitalise } from "helpers" - import { createEventDispatcher } from "svelte" export let label = "" export let bindable = true @@ -18,11 +17,11 @@ export let type = "" export let value = null export let props = {} + export let onChange = () => {} let bindingDrawer let anchor let valid - let dispatch = createEventDispatcher() $: bindableProperties = getBindableProperties( $currentAsset, @@ -54,9 +53,9 @@ } if (typeof innerVal === "string") { - dispatch("change", replaceBindings(innerVal)) + onChange(replaceBindings(innerVal)) } else { - dispatch("change", innerVal) + onChange(innerVal) } }