pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

Support for required attribute? #133

Closed timwis closed 2 years ago

timwis commented 2 years ago

Hi there, thanks for this plugin! I was wondering if there's any way to mark the field as required so the form won't submit unless it has a value? I would think via the required attribute of the <input> or <select>

PPP01 commented 2 years ago

I made a pull request for that: https://github.com/pstanoev/simple-svelte-autocomplete/pull/137