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

Forms: Select component don't validate value if v-model was assigned by default #7084

Closed
1 of 4 tasks
Neoclassic-alt opened this issue Jan 14, 2025 · 1 comment
Closed
1 of 4 tasks
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Neoclassic-alt
Copy link

Neoclassic-alt commented Jan 14, 2025

Describe the bug

Primevue Forms don't validate <Select> if value was programmatically assigned (for example, through v-model). You need to change value and submit the same value (tested on zod).

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/vitejs-vite-jkiq6fvn?file=src%2Fcomponents%2FHelloWorld.vue

Environment

Vite, TypeScript

Vue version

3.5.12

PrimeVue version

4.2.5

Node version

22.13.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://stackblitz.com/edit/vitejs-vite-jkiq6fvn?file=src%2Fcomponents%2FHelloWorld.vue
  2. Click on "Save". See error
  3. Change again
  4. Successfully!

Expected behavior

Successfully fulfilled

@Neoclassic-alt Neoclassic-alt 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 14, 2025
@mertsincan
Copy link
Member

Fixed in #6801 (comment)

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