pro-components
pro-components copied to clipboard
ProForm 报错 React does not recognize the `showCount` prop on a DOM element
🐛 bug 描述
ProForm 报错 React does not recognize the showCount prop on a DOM element
📷 复现步骤
- ProForm 设置readonly、initialValues
- ProFormTextArea 添加 showCount,如:fieldProps={{ maxLength: 500, showCount: true }}
- 控制台报错了
🏞 期望结果
不要报错
💻 复现代码
<ProForm readonly initialValues={{ remark: 'test' }}>
<ProFormTextArea
label="备注"
name="remark"
fieldProps={{ maxLength: 500, showCount: true }}
/>
</ProForm>
© 版本信息
- ProComponents 版本:最新版本
- umi 版本:4.2.15
- 浏览器环境:谷歌
- 开发环境:mac OS
🚑 其他信息
以下的 Issues 可能会帮助到你 / The following issues may help you
- [#8634][🐛[BUG] ProTable 开启虚拟列表后报错”React does not recognize the
offsetXprop on a DOM element“][64%]
我也遇到了这个问题 这个 issue 还没解决嘛