dyaliCode / svelte-formly

Generator dynamic forms for Svelte JS
https://svelte.formly-js.com
MIT License
253 stars 30 forks source link

Radio buttons - do not check any button by default? #39

Closed hauselin closed 2 years ago

hauselin commented 2 years ago

By default, it seems like the first radio button is always checked even when I haven't clicked on anything yet. Is it possible to make it such that no button is checked by default? Thanks!

image

kamalkech commented 2 years ago

@hauselin For your case it s better to use checkbox instead of radio that require to select a value and by default take the first element value if not selected,

Check this example for checkbox and hope that help you

hauselin commented 2 years ago

Ok, thanks for the suggestion!

kamalkech commented 2 years ago

@hauselin welcome