Standard Select Componet:added blank option
This commit is contained in:
parent
f85d080496
commit
0f0c994a6c
|
@ -20,6 +20,7 @@ const onchange = (ev) => {
|
||||||
<select class={className}
|
<select class={className}
|
||||||
value={value}
|
value={value}
|
||||||
on:change={onchange}>
|
on:change={onchange}>
|
||||||
|
<option></option>
|
||||||
{#each options as opt}
|
{#each options as opt}
|
||||||
<option id={opt.id ? opt.id : opt.value}>{opt.value}</option>
|
<option id={opt.id ? opt.id : opt.value}>{opt.value}</option>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
Loading…
Reference in New Issue