Skip to content

HTML5 required field #182

@1127

Description

@1127

Seems like there's a problem using HTML5 required attribute on a switchery checkbox. If you use it and submit the form, instead of a nice HTML5 required popup - you'll get JS error:
An invalid form control with name='xxx' is not focusable.
I believe that's the browser trying to show the original (now hidden) checkbox as required... and moving focus to it. Possible to fix this somehow in the library code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions