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

Feature Request: hasValidated as validation state

未关闭
#113 9 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
enhancement good first issue
主要语言
JavaScript
星标
439
派生
172
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
28/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。