当在React中使用p标签的html5可编辑属性contentEditable时存在警告报错,报错内容:
A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.
解决方案添加suppressContentEditableWarning 属性
实例:<p suppressContentEditableWarning contentEditable="true" onSelect={this.selectGetValue.bind(this)}>${render}</p>
问题解决