Why it dont work?
rcapdepaula opened this issue · 2 comments
rcapdepaula commented
<select id="category" name="category" on:change={handleInput}>
{#await fetchCategories()}
{#if loading}
<Jumper />
{/if}
{:then}
{#each categories as category}
<option
name="category"
value={// get category id of selected category\
category.id}
>
{category.name}</option
>
{/each}
{loading === false}
{/await}
Schum123 commented
I'm not sure what you are trying to do. But the spinner is inside the <select>
tag?
Permitted content for <select>
are Zero or more <option>
or <optgroup>
elements.
rcapdepaula commented
OK. Thanks!