The Forms in the official example of the Select component pass validation even if they are not selected #7421
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
This is the content of the official example, in the case of no select can still pass the verification, after testing found that FormSubmitEvent valid is true, but values is undefined, why undefined can pass the verification?
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-1ttjhorl?file=src%2FApp.vue
Environment
"primevue": "^4.3.1",
"@primevue/forms": "^4.3.1",
"vue": "^3.5.13",
"zod": "^3.24.2"
Vue version
4.3.1
PrimeVue version
4.3.1
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
It passes validation if select is not selected
Expected behavior
Ability to verify the null value of select
The text was updated successfully, but these errors were encountered: