Use immediate: true for page.textarea.vue::text

This commit is contained in:
Norm 2022-07-24 15:37:21 -04:00
parent cff82ea52e
commit d32228a347
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -13,11 +13,12 @@ const props = defineProps<{
hpml: Hpml;
}>();
let text = $ref(props.hpml.interpolate(props.block.text));
let text = $ref('');
watch(props.hpml.vars, () => {
text = props.hpml.interpolate(props.block.text);
text = props.hpml.interpolate(props.block.text) as string;
}, {
deep: true,
immediate: true,
});
</script>