svelteschool / svelte-forms

A simple form component that doesn't care about what you put in it. It just works.
137 stars 5 forks source link

The input radio it's not working #2

Closed danierdev closed 4 years ago

danierdev commented 4 years ago

Issue description

First at all thanks for the library, this clean approach is really cool and flexible. Using the REPL demo with radio inputs i found a little bug.

Steps to reproduce the issue

  1. Add radio inputs for gender select
  2. Select a value from radio list
  3. Then select other value

What's the expected result?

{
 "gender": "male",
 "topping": "Cream"
}

What's the actual result?

{
 "gender": [
  "male"
 ],
 "topping": "Cream"
}

Additional details / screenshot

kevmodrome commented 4 years ago

Thanks for the report. I'll take a look.