Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Cannot read properties of undefined (reading 'isInCompositionMode') #3156

Open
DoLoop216 opened this issue Jul 30, 2022 · 0 comments
Open

Cannot read properties of undefined (reading 'isInCompositionMode') #3156

DoLoop216 opened this issue Jul 30, 2022 · 0 comments

Comments

@DoLoop216
Copy link

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"
  }

Screenshot_2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant