Cannot read properties of undefined (reading 'isInCompositionMode')
DoLoop216 opened this issue · comments
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Editor won't render,. Dropping error in console Cannot read properties of undefined (reading 'isInCompositionMode')
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/gmertk/e61z7nfa/.
Here is pure hook in which i get this error jsfiddle
What is the expected behavior?
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"draft-js": "^0.11.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"universal-cookie": "^4.0.4",
"web-vitals": "^2.1.4"
}