|
|
@ -4,7 +4,6 @@ |
|
|
|
|
|
|
|
|
const { styleable, builderStore } = getContext("sdk") |
|
|
const { styleable, builderStore } = getContext("sdk") |
|
|
const component = getContext("component") |
|
|
const component = getContext("component") |
|
|
const containerClickableStore = getContext("containerClickable") |
|
|
|
|
|
|
|
|
|
|
|
export let disabled = false |
|
|
export let disabled = false |
|
|
export let text = "" |
|
|
export let text = "" |
|
|
@ -19,10 +18,6 @@ |
|
|
|
|
|
|
|
|
let node |
|
|
let node |
|
|
|
|
|
|
|
|
containerClickableStore.subscribe(hasOnClick => { |
|
|
|
|
|
disabled = hasOnClick |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
$: $component.editing && node?.focus() |
|
|
$: $component.editing && node?.focus() |
|
|
$: componentText = getComponentText(text, $builderStore, $component) |
|
|
$: componentText = getComponentText(text, $builderStore, $component) |
|
|
|
|
|
|
|
|
|