Ant-design: 表单控件的onChange可以安排在onFieldsChange之后吗

Created on 8 Mar 2017  ·  3Comments  ·  Source: ant-design/ant-design

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

Most helpful comment

onFieldsChange => onValuesChange

All 3 comments

onFieldsChange => onValuesChange

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryannealmes picture ryannealmes  ·  3Comments

drcmda picture drcmda  ·  3Comments

cnchore picture cnchore  ·  3Comments

longhuasishen picture longhuasishen  ·  3Comments

tianyacsdn picture tianyacsdn  ·  3Comments