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

Closed
mvicens opened this issue May 14, 2024 · 2 comments
Closed

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

mvicens opened this issue May 14, 2024 · 2 comments
Labels
Resolution: Stale Automatically closed due to inactivity 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
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Aug 12, 2024
Copy link

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Automatically closed due to inactivity 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