用antd的Modal封装了弹窗,只要打开弹窗就会报这个错
React does not recognize theforceRender
prop on a DOM element. If
you intentionally want it to appear in the DOM as a custom attribute,
spell it as lowercaseforcerender
instead. If you accidentally
passed it from a parent component, remove it from the DOM element
代码:`
<Modal
title="修改信息"
closable
wrapClassName="port-dialog-content"
visible={this.props.visible}
onCancel={() => this.props.closeDia(false)}
onOk={() => this.handleOk()}
width={520}
>
<div>
//...
</div>
</Modal>`
antd确实有forceRender这个属性,我试着加forceRender={false}或者true,也没有效果
antd版本3.19
找到问题了,是antd引用插件rc-dialog的问题,rc-dialog升级到7.5.7就好了