Antd form表单中input失效,无法输入字符串,只能输入单个字符

未有特别说明均为原创,转载注明出处。

 

问题描述

https://segmentfault.com/q/1010000011665581

删掉{getFieldDecorator(name, {})这一段 表框可以正常输入。

解决办法

检查form表单或者父节点是否使用了 key=Math.random() 之类给组件添加唯一值的代码。

posted @ 2019-04-23 08:30  marvelousone  阅读(3987)  评论(0编辑  收藏  举报