Schum123/svelte-loading-spinners

Why it dont work?

rcapdepaula opened this issue · 2 comments

	<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?

Permitted content for <select> are Zero or more <option> or <optgroup> elements.

OK. Thanks!