jpillora / jpillora/jquery.async.validator

Clearing field does not reset error.

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Create a phone field in source.

  1. Enter valid number, "0411111111".
  2. Remove digits, "041111". Get error "Must be 10 digits long".
  3. Clear field. Error does not change.

restart, and do this:

  1. Enter valid number, "0411111111".
  2. Change to "1111111111". Get error "Number must start with 0".
  3. Clear field. Error does not change.

Taken together, these suggest that for an empty field, there is no specific error that is being generated, instead the validation engine is falling over in this case.

Furthermore, if you set skipNotRequired: true, it still does not accept blanks after you clear the field after an error.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported phone-field steps in the source, including both invalid-number errors and skipNotRequired: true. Trace what happens when the field is cleared after an error; done when clearing updates the error state and blank values are accepted when skipNotRequired is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.