ErnaneJ / svelte-star-rating

Simple Svelte component, with no dependencies, for implementing and capturing assessments through a simple and intuitive interface that will take you to the stars. ✨
https://www.npmjs.com/package/@ernane/svelte-star-rating
MIT License
36 stars 10 forks source link

add name attribute to input #11

Closed Yelinz closed 1 year ago

Yelinz commented 1 year ago

I was tinkering with it a bit more and having the name attribute on the input for using it inside a <form> for sveltekit form actions seems pretty useful.

https://stackoverflow.com/questions/12543848/does-form-data-still-transfer-if-the-input-tag-has-no-name

Otherwise it will not be in the data sent to the server