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

Bug validate with Volt Functional API (duplicate errors, input message error without form.) #93

Closed
thaolaptrinh opened this issue Mar 3, 2024 · 3 comments

Comments

@thaolaptrinh
Copy link

Volt Version

1.0.0

Laravel Version

10.10

PHP Version

8.1

Database Driver & Version

No response

Description

Bug validate with Volt Functional API (duplicate errors, render error input without form.)
image
image

Steps To Reproduce

Initial project with breeze and install with Volt Functional API.

@driesvints
Copy link
Collaborator

Heya, thanks for reporting.

We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.

laravel new bug-report --github="--public"

Please do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.

Thanks!

@nunomaduro
Copy link
Collaborator

nunomaduro commented Mar 25, 2024

I am unable to reproduce it. As @driesvints said, try to create a repository where we can reproduce the issue.

Screenshot 2024-03-25 at 17 24 46

@dencarlsson
Copy link

@driesvints @nunomaduro I found a similar thing where I get duplicated/sticky error messages in a Volt component with a FormObject with validation.

I tried to install a fresh laravel/breeze install with both class and functional Volt components. Just by changing from wire:model to wire:model.live or wire:model.blur for the email input on the login page will reproduce it for me and a colleague.

It seems like theres some issues with the store updating correctly when using a FormObject.
The "The email field is required." message sticks around even if theres data in the input field and also the "The email field must be a valid email address." gets duplicated.

duplicated-and-stickty-formobject-error-message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants