Closed rcapdepaula closed 2 years ago
<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}
I'm not sure what you are trying to do. But the spinner is inside the <select> tag?
<select>
Permitted content for <select> are Zero or more <option> or <optgroup> elements.
<option>
<optgroup>
OK. Thanks!