sveltestrap icon indicating copy to clipboard operation
sveltestrap copied to clipboard

Select input: Can it be multiselect?

Open neospirit opened this issue 3 years ago • 3 comments
trafficstars

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?

neospirit avatar Feb 19 '22 00:02 neospirit

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.

bestguy avatar Feb 19 '22 04:02 bestguy

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

neospirit avatar Feb 21 '22 09:02 neospirit

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>

compwright avatar Aug 31 '23 17:08 compwright