Open ghost opened 6 years ago
One day react-contenteditable just stopped working for me. No clue why. It suddenly would not do anything but move my caret to the first position on every keystroke, resulting in backwards text.
<3 this project
I am also looking for an alternative to react-contenteditable, since that is buggy. This one doesn't seem to have a way to disable contenteditable
@krue-doug I don't know if it helps, but you can use browser-specific CSS to disable modification perhaps:
-moz-user-modify: read-only;
-webkit-user-modify: read-only;
Alternatively you could use the onChange to force the state to remain the same no matter attempts to change it, I assume, though it's not great user experience.
What's the difference betweeen this project and these below?