sveltestrap
sveltestrap copied to clipboard
Select input: Can it be multiselect?
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?
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.
That would be nice. And by the way thank you a lot for this awesome lib. Great job!
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>