adopted-ember-addons / adopted-ember-addons/ember-cp-validations

Feature Request: hasValidated as validation state

Ouverte
#113 9 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
enhancement good first issue
Langage dominant
JavaScript
Étoiles
439
Forks
172
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

A common pattern is surfacing validation errors after the user touched a field.

It would be great if this state was stored on the validation object and flipped only when `validate` or `validateSync` is invoked and in the case of the async validation - once it's resolved.

Thoughts? I can work on this if there is buy-in.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by finding where the validation object is created and where validate and validateSync are implemented. The requested behavior is a hasValidated state that stays false until validation is invoked, and for async validation flips only after resolution. Done would require tests covering sync and async validation state, but the issue is very old and asks for maintainer buy-in.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
28/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.