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

[BUG]errorChanged is not defined #153

Closed
strangebank opened this issue Jan 23, 2021 · 1 comment
Closed

[BUG]errorChanged is not defined #153

strangebank opened this issue Jan 23, 2021 · 1 comment

Comments

@strangebank
Copy link

Bug描述

errorChanged
WX20210123-202133@2x

版本信息

@gentlelynn
Copy link

翻看源码,在src/form/form-validator.ts文件我们可以找到,当验证参数只有cb时(validate(cb?: any)方法)即我们表单什么都没有填的这种情况下,errorChanged确实是没有定义,而是直接调用的(没有仔细看为啥注释掉了原本的let定义,也许只是不想给errorChanged直接赋值为false)。但是到后面有值验证时( validateField(name, value, cb?)),它是定义了的。

@Tidyzq Tidyzq closed this as completed in 99157e2 Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants