revert change to event dispatcher
This commit is contained in:
parent
a77b386f6e
commit
8ec5e7f8ce
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue