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

表单控件的onChange可以安排在onFieldsChange之后吗 #5212

Closed
yangbin1994 opened this issue Mar 8, 2017 · 3 comments
Closed

表单控件的onChange可以安排在onFieldsChange之后吗 #5212

yangbin1994 opened this issue Mar 8, 2017 · 3 comments

Comments

@yangbin1994
Copy link

前提:根据官方提供的api实现了表单的双向绑定
问题:控件change之后,希望发起一些异步操作,在onFieldsChange里面做了分支判断,但是发现onFieldsChange会触发2次,因为数据是异步获得的,2次请求的中间如果拉取的数据发生变化,最终得到的结果并不是我想要的
解决:使用空间自己的onChange,但是发现它的调用在onFieldsChange之后,如果我是通过参数传值的方式,感觉我实现双向表单绑定的意义就没有了
希望:可以帮忙解决2次触发的问题,或者标题所述

@afc163
Copy link
Member

afc163 commented Mar 8, 2017

onFieldsChange => onValuesChange

@afc163
Copy link
Member

afc163 commented Mar 8, 2017

Missing in changelog of 2.7.0

@afc163 afc163 closed this as completed Mar 8, 2017
@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants