p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Async validation errors disappear when unrelated fields are edited

Open amarnathgupta opened this issue 6 months ago • 2 comments

p5.js version

2.16.11

What is your operating system?

Windows

Web browser and version

chrome://132.0.6834.160

Actual Behavior

When editing the username or email fields, async validation errors like "username already taken" appear correctly. However, as soon as the user starts editing password or confirmPassword, the error messages from username or email disappear — even though the errors still exist.

Expected Behavior

Error messages for username and email should remain visible until they’re actually corrected, regardless of changes to other fields.

Steps to reproduce

🐛 Steps to Reproduce

  1. Go to the Signup form.
  2. Enter a taken username (e.g. admin) or an **invalid email`.
  3. Notice that the error message appears correctly.
  4. Now edit the password or confirmPassword field.

✅ Observed:

  • password field updates correctly.

❌ Issue:

  • The username/email error disappears, even though it hasn’t been fixed.

amarnathgupta avatar Jul 12 '25 14:07 amarnathgupta

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

welcome[bot] avatar Jul 12 '25 14:07 welcome[bot]

Hi I would like to work on this issue of async validation errors disappearing when unrelated fields are edited. Could you please assign it to me?

Subham-KRLX avatar Jul 22 '25 10:07 Subham-KRLX