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
Comments
onFieldsChange => onValuesChange |
afc163
added a commit
that referenced
this issue
Mar 8, 2017
Missing in changelog of 2.7.0 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
前提:根据官方提供的api实现了表单的双向绑定
问题:控件change之后,希望发起一些异步操作,在onFieldsChange里面做了分支判断,但是发现onFieldsChange会触发2次,因为数据是异步获得的,2次请求的中间如果拉取的数据发生变化,最终得到的结果并不是我想要的
解决:使用空间自己的onChange,但是发现它的调用在onFieldsChange之后,如果我是通过参数传值的方式,感觉我实现双向表单绑定的意义就没有了
希望:可以帮忙解决2次触发的问题,或者标题所述
The text was updated successfully, but these errors were encountered: