Now I have encountered these problems when I use Reactjs and the "contentEditable" or "edit" html5 mode.
<div contenteditable="true"> <p data-reactid=".0.5">Reactjs</p> </div>
When I type Enter or Shift Enter in a new line -> Create a new element with the previous element
<div contenteditable="true"> <p data-reactid=".0.5">Reactjs</p> <p data-reactid=".0.5"></p> </div>
When I click in abstract elements → this error will appear.
I know this is a problem. Can someone give me a solution? Maybe create another new element in "contenteditable" mode or prevent the implicit handle event in Reactjs.
THANKS.
Logpi source share