Invalid DOM property contenteditable
. Did you mean contentEditable
?
在react中 contenteditable 是关键字 你换 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.
contentEditable上添加suppressContentEditableWarning=“true” V15以上可用
- contenteditable获得焦点后的边框设置
[contenteditable]:focus{outline: none;}