我正在尝试在无状态反应组件中实现一个 contenteditable div 。
我不断收到以下警告:
warning.js:36 Warning: 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.
我该如何解决?
另外,如何在更改时读取 div 的内容?
Add suppressContentEditableWarning="true"
到 contenteditable div。
参考:https://github.com/facebook/draft-js/issues/81 https://github.com/facebook/draft-js/issues/81
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)