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: form submission validation of React textarea in Chrome #29053

Open
mvicens opened this issue May 14, 2024 · 0 comments
Open

Bug: form submission validation of React textarea in Chrome #29053

mvicens opened this issue May 14, 2024 · 0 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@mvicens
Copy link

mvicens commented May 14, 2024

In Chrome, textareas with minimum length restriction has unexpected behavior when it is form-validated. It seems to be related to this pull request.

Here you have a demo (code example). Steps to reproduce:

  1. Try to submit the 1st form. The browser avoids it and show you alerts.
  2. Fill properly the required controls to achieve submission.
  3. Then, add one letter into not-required controls and tweak them to success again. All controls must be filled and form submitted.

Repeat the same for the React-controlled (2nd) <form>. You will see that the last <textarea> fails. It has to be restricted like its sibling.

React version: 18.3.1 (latest).

@mvicens mvicens added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant