handle js bindings in default value
This commit is contained in:
parent
09bb958f0f
commit
44d9a51fc2
|
@ -13,6 +13,7 @@
|
||||||
decodeJSBinding,
|
decodeJSBinding,
|
||||||
findHBSBlocks,
|
findHBSBlocks,
|
||||||
isJSBinding,
|
isJSBinding,
|
||||||
|
processStringSync,
|
||||||
} from "@budibase/string-templates"
|
} from "@budibase/string-templates"
|
||||||
import DrawerBindableInput from "@/components/common/bindings/DrawerBindableInput.svelte"
|
import DrawerBindableInput from "@/components/common/bindings/DrawerBindableInput.svelte"
|
||||||
|
|
||||||
|
@ -230,7 +231,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const stateUpdate = {
|
const stateUpdate = {
|
||||||
[selectedKey]: e.detail,
|
[selectedKey]: processStringSync(
|
||||||
|
e.detail,
|
||||||
|
$previewStore.selectedComponentContext
|
||||||
|
),
|
||||||
}
|
}
|
||||||
previewStore.updateState(stateUpdate)
|
previewStore.updateState(stateUpdate)
|
||||||
editorValue = e.detail
|
editorValue = e.detail
|
||||||
|
|
Loading…
Reference in New Issue