diff --git a/src/lib/components/Dropdown.svelte b/src/lib/components/Dropdown.svelte index 3ac03d5..33f28a4 100644 --- a/src/lib/components/Dropdown.svelte +++ b/src/lib/components/Dropdown.svelte @@ -1,9 +1,9 @@
@@ -66,13 +87,26 @@ > {@render children()}
- event.preventDefault()} - value={get_label(input_variable) ?? placeholder} - {...restProps} - /> + {#if action} + event.preventDefault()} + value={get_label(input_variable) ?? placeholder} + {...restProps} + /> + {:else} + event.preventDefault()} + value={get_label(input_variable) ?? placeholder} + {...restProps} + /> + {/if}