Losing cursor position when using ContentEditable and Readonly flags on decorated component
Do you want to request a feature or report a bug? Bug
What is the current behavior? When when using ContentEditable and Readonly flags on decorated components that are the last element in a single line, the cursor position jumps to the far right. The position returns back to normal when typing
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
(click to the right of "Superman". All that I've done is erase the content below and add contentEditable={false} readOnly to the TokenSpan component)
https://codepen.io/anon/pen/BqOePj
Screenshot of bug:

What is the expected behavior? Cursor should be just to the right of "Superman"
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft 0.10.5 Chrome 69.0.3497.100
Just to add it happens also when decoration is at the begining, so in the example above, if Superman is the first item in a line - cursor will be lost on the left side.
@negyxo Did you find a solution for this?
Unfortunately not, it's not critical in my app, so I can live with it...