jodit / jodit/jodit-react

Uncaught TypeError: Cannot read property 'current' of undefined

Open
#4 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
406
Forks
131
Avg merge
2h 32m
Merged PRs (30d)
2

Description

Uncaught TypeError: Cannot read property 'current' of undefined
    at t.calcPathImd (jodit.min.js:10)
    at jodit.min.js:10

I have followed this tutorial.
https://xdsoft.net/jodit/examples/intergration/react-jodit.html
and got this error in browser console.

If I block the setState then there is no errors.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the React integration tutorial and reproduce the browser error while observing the setState call. Trace the reported calcPathImd stack in jodit.min.js and determine why current is undefined; done means the tutorial works without blocking setState and the console error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.