Schum123 / svelte-loading-spinners

A collection of loading spinner components for SvelteJs
https://schum123.github.io/svelte-loading-spinners/
MIT License
511 stars 35 forks source link

Why it dont work? #31

Closed rcapdepaula closed 2 years ago

rcapdepaula commented 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}
Schum123 commented 2 years ago

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 2 years ago

OK. Thanks!