bestguy / sveltestrap

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

select option can not be selected #391

Open cnshsliu opened 2 years ago

cnshsliu commented 2 years ago
<Input type="select">
<option selected>1</option>
<option>2</option>
</Input>

1 is not selected
bestguy commented 2 years ago

Hmm, yes that's annoying, will take a look. Here is a workaround of sorts:

<Input type="select" value="1">
  <option>1</option>
  <option>2</option>
</Input>