jpillora / jpillora/jquery.async.validator
Clearing field does not reset error.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Create a phone field in source.
- Enter valid number, "0411111111".
- Remove digits, "041111". Get error "Must be 10 digits long".
- Clear field. Error does not change.
restart, and do this:
- Enter valid number, "0411111111".
- Change to "1111111111". Get error "Number must start with 0".
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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