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

issue: form action does not trigger client side validation #11610

Closed
1 task done
slava-lu opened this issue Mar 8, 2024 · 2 comments
Closed
1 task done

issue: form action does not trigger client side validation #11610

slava-lu opened this issue Mar 8, 2024 · 2 comments

Comments

@slava-lu
Copy link

slava-lu commented Mar 8, 2024

Version Number

7.51.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/lively-sunset-4743mx

Steps to reproduce

Using Server Actions is now the official and recommended way we build forms in React (Next.js). Wrapping an action in onSubmit function is currently the workaround but does not look like a nice one.
The validations we put in register function should be triggered by <form action={formAction}>
Currently it is not the case.

Expected behaviour

When using React Server Actions with action attribute the client side validation is still triggered.

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bluebill1049
Copy link
Member

still wip

@Moshyfawn
Copy link
Member

You can follow #11061

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants