Skip to content

Svelte3 bind:checked and radio input #2300

@dmitry-kurmanov

Description

@dmitry-kurmanov

Hello!

I've got the compile time error with the checked binding:

(svelte plugin) ValidationError: 'checked' binding can only be used with <input type="checkbox">

But what about type="radio" ? checked is valid attribute for it, please check: https://developer.mozilla.org/ru/docs/Web/HTML/Element/Input/radio

It make sense when we have several radio inputs with the same name.

Thanks!

PS svelte3 is awesome :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions