Standard Select Componet:added blank option

This commit is contained in:
Michael Shanks 2019-10-31 09:23:55 +00:00
parent 5c8c6b5ce3
commit e3b6dffda5
1 changed files with 1 additions and 0 deletions

View File

@ -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}