Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form.Item validateStatus is "success" when shouldn't be with validateTrigger="onBlur" #11401

Closed
1 task done
JonDum opened this issue Jul 22, 2018 · 1 comment
Closed
1 task done
Assignees
Labels
3.x 3.x stable issue or bug fix, PR should be cherry-pick to master 🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@JonDum
Copy link

JonDum commented Jul 22, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.7.1

Environment

MacOS 10.13.1, Chrome 67, React 16

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Type into inputs (first is validateTrigger="onChange", second is validateTrigger="onBlur")

What is expected?

Input with validateTrigger=="onBlur" should not show any validateStatus or validateStatus=="success" until validations have run and there are no errors.

What is actually happening?

Type into first field input. Input is validated and shown as "has-error" until it is valid email and goes to "has-success".

Type into second field input. Input is not validated but is still shown "has-success" even though no validations have run.


Possibly need second additional check in FormItem.tsx#L183 to to see if validations have run at all.

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Jul 29, 2018
@zombieJ zombieJ added the 3.x 3.x stable issue or bug fix, PR should be cherry-pick to master label Sep 24, 2020
@github-actions
Copy link
Contributor

Hi @JonDum,
Current branch is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed.

你好 @JonDum,
当前分支已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x 3.x stable issue or bug fix, PR should be cherry-pick to master 🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

No branches or pull requests

5 participants