bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.3k stars 183 forks source link

Select input: Can it be multiselect? #448

Open neospirit opened 2 years ago

neospirit commented 2 years ago

Hi, it seems that the multiselect option is available in Bootstrap and in a sample of the Inputs page but it is commented. Is it because it does not work or does it need to be developed?

bestguy commented 2 years ago

Hi @neospirit , there's an issue with Svelte and multiple being dynamic, was having issues with it. I can take another look if this can be resolved.

neospirit commented 2 years ago

That would be nice. And by the way thank you a lot for this awesome lib. Great job!

compwright commented 11 months ago

I too am encountering this issue:

<FormGroup floating label="Contact Group(s)">
    <Input type="select" placeholder="Contact Group(s)" name="contact_groups" multiple>
        <option value=""></option>
        {#each contactGroups as group}
            <option value={group.value}>{group.label}</option>
        {/each}
    </Input>
</FormGroup>

Renders only the <label> tag, the <select> tag doesn't render:

<div class="mb-3 form-floating">
    <label>Contact Group(s) </label>
</div>