-
Notifications
You must be signed in to change notification settings - Fork 525
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
Valibot custom pipe seems not to be evaluated #625
Comments
Not sure if related, but after a full fresh install, I got a While it does not prevent development, the build fails so deployment is not possible. |
This has been fixed in #617, will try to release it asap! |
Will this also fix the initial problem of this issue? In my case, most of the validations do work. But the custom one is not. Or am I just too stupid to see something obvious? ;-) |
@Sevichecc @romhml any insight on this? |
Looks like the custom valibot rule raises an issue without a path:
Which makes sense because it's not bound to any attribute in the schema definition. Without this, the component cannot properly inject the error into any fields. I'd suggest to move this rule to We could also add support for global rules directly inside the Form component, by displaying global errors at the bottom of the Form. |
Alright. A solution like this fabian-hiller/valibot#76 (comment) wouldn't solve this either, for the same reason. This makes sense. I was wondering, because parsing the schema manually worked as expected. |
This is not a bug in Nuxt UI. You have to |
Version
@nuxt/ui: 2.8.0
nuxt: 3.7.0
Reproduction Link
https://stackblitz.com/edit/nuxt-ui-8atj1c?file=app.vue,package.json,nuxt.config.ts
Steps to reproduce
Enter non-matching passwords like
"Test Test Test"
and
"Test1 Test1 Test1"
What is Expected?
The custom check should be evaluated and the input should be marked red.
What is actually happening?
It's not marked red, although the submit-message is not shown (which is correct)
The text was updated successfully, but these errors were encountered: