Skip to content
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

MultiSelect validate error when working with FormField #7100

Closed
1 of 4 tasks
JohnieXu opened this issue Jan 15, 2025 · 1 comment
Closed
1 of 4 tasks

MultiSelect validate error when working with FormField #7100

JohnieXu opened this issue Jan 15, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@JohnieXu
Copy link

Describe the bug

MultiSelect validate throw the wrong result "Expected array, received boolean" when worked with FormField,validation engine is zod.
Remove the FormField, the form validation is working properly.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/xwercpav?file=src%2FApp.vue

Environment

win10 x64

Vue version

3.5.13

PrimeVue version

4.2.5

Node version

20.11.1

Browser(s)

Chrome 131.0.6778.265

Steps to reproduce the behavior

  1. Operate the second MultiSelect
  2. Select multiple options, not select all.
  3. Then check the valitate result, like this "Expected array, received boolean"

Expected behavior

The form validation is working properly.

@JohnieXu JohnieXu added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 15, 2025
@mertsincan
Copy link
Member

Fixed for the next version.

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants