revert change to event dispatcher

This commit is contained in:
Maurits Lourens 2021-07-28 11:30:57 +02:00
parent a77b386f6e
commit 8ec5e7f8ce
1 changed files with 3 additions and 4 deletions

View File

@ -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)
}
}