mdx-editor / mdx-editor/editor

[BUG] Minified React error #185 when editing table cells

Open
#404 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

If you want to ask for support or request features, sponsor the project and contact me over email.

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.

  • I have read the documentation and cannot find an answer.

Describe the bug
showing this error on console, on my repo and also on https://mdxeditor.dev/editor/demo

content.js:2 [mobx] uncaught error in 'Reaction[z.render()]' Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Zl (content.js:2:719174)
    at Object.enqueueForceUpdate (content.js:2:670338)
    at v.forceUpdate (content.js:2:448636)
    at e.onInvalidate_ (content.js:2:156722)
    at t.runReaction_ (content.js:2:30119)
    at Et (content.js:2:31561)
    at _t (content.js:2:31289)
    at content.js:2:34455
    at Yl (content.js:2:722525)

Reproduction
what this screen

To Reproduce
Steps to reproduce the behavior:
go to https://mdxeditor.dev/editor/demo
open console
create a table
enter an element on cell other than text like a divider
and then write some text on text other cell
and it will start throwing err on console

Expected behavior
no error

Screenshots
Screenshot (120)

https://www.loom.com/share/46114da8d0a547eab2d7e5a1b34fadba?sid=c00f34b1-df07-47e1-ab20-10ad81484cf7

Desktop (please complete the following information):

  • OS: [ Windows]
  • Browser [Chrome]

Additional context

Contributor guide

Open the contributing guide

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 by reproducing the error at https://mdxeditor.dev/editor/demo with the browser console open: create a table, add a non-text element to one cell, then type in another cell. Use the non-minified development environment and the React error details to trace the editing path. Done means this sequence no longer logs React error #185.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.