Skip to content

Select required sometimes not working #3882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mydnic opened this issue Apr 14, 2025 · 0 comments
Open

Select required sometimes not working #3882

mydnic opened this issue Apr 14, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@mydnic
Copy link

mydnic commented Apr 14, 2025

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

@mydnic mydnic added bug Something isn't working triage v3 #1289 labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant