Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Editing decorated components causes random characters to show. I have pin pointed the issue to occur after https://github.com/facebook/draft-js/blob/master/src/component/handlers/edit/editOnInput.js#L73 where domText === modelText condition is not met. When going from 21 characters to 22, it appears that the component isn't getting updating properly causing the condition to fail and the attempt to fix the DOM state is what causes seemly random characters to show.
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:http://react.jsbin.com/fikadeliva/1/edit?js,output
What is the expected behavior?
Users should be able to edit decorated components as expected.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Current version is 0.9.1. Affect all OS.
Do you want to request a feature or report a bug? Bug
What is the current behavior? Editing decorated components causes random characters to show. I have pin pointed the issue to occur after https://github.com/facebook/draft-js/blob/master/src/component/handlers/edit/editOnInput.js#L73 where
domText === modelText
condition is not met. When going from 21 characters to 22, it appears that the component isn't getting updating properly causing the condition to fail and the attempt to fix the DOM state is what causes seemly random characters to show.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: http://react.jsbin.com/fikadeliva/1/edit?js,output
What is the expected behavior? Users should be able to edit decorated components as expected.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Current version is 0.9.1. Affect all OS.