diff --git a/frontend/src/lib/components/pagebuilder/form/select.svelte b/frontend/src/lib/components/pagebuilder/form/select.svelte index 37dc40e..ca1490d 100644 --- a/frontend/src/lib/components/pagebuilder/form/select.svelte +++ b/frontend/src/lib/components/pagebuilder/form/select.svelte @@ -57,6 +57,9 @@ } } }) + $: if (!valueStorage) { + valueStorage = [] + } $: value = valueStorage.map((item) => item.value) @@ -70,6 +73,7 @@ searchable="{true}" multiple="{true}" bind:value="{valueStorage}" + on:clear="{() => (valueStorage = [])}" />