Skip to content

Commit

Permalink
Update Select component default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Feb 21, 2024
1 parent 68f12a7 commit 408e416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/Forms/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
{...$constraints}
{...$$restProps}
>
{#if !$constraints?.required}
<option value="">--</option>
{#if !$constraints?.required && !options.find((o) => o.label === '--')}
<option selected>--</option>
{/if}
{#each options as option}
<option value={option.value} style="background-color: {color_map[option.value]}"
Expand Down

0 comments on commit 408e416

Please sign in to comment.