Skip to content

Select required sometimes not working #3882

Open
@mydnic

Description

@mydnic

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

3.0.2

Reproduction

https://codesandbox.io/p/sandbox/festive-feather-mzq49q

In the second select (which is wrapped in a form tag), don't select anything, and click save to submit the form.

It should show the browser "this input is required" tooltip.

Description

I can't really understand why/how this happens. Sometimes, the required prop on a Select component will not prevent the form to be submitted. But sometimes it's working fine.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagev3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions