8000 Tex example doesn't work - unable to find node on an unmounted component · Issue #1756 · facebookarchive/draft-js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Tex example doesn't work - unable to find node on an unmounted component #1756
@KenCoder

Description

@KenCoder

Do you want to request a feature or report a bug?
bug

What is the current behavior?
The tex example doesn't work, generates javascript errors

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  • Checkout repo at d2a3ae
  • Follow instructions in examples/draft-0-10-0/tex/readme.md
  • Open chrome at localhost:3000
  • Put cursor at the end of the first line and press Backspace
    You see this error in Chrome (and it doesn't delete the character);
Uncaught Error: Unable to find node on an unmounted component.
    at invariant (app.js:12062)
    at Object.findDOMNode (app.js:35151)
    at DraftEditorTextNode.shouldComponentUpdate (app.js:19200)
    at app.js:76800
    at measureLifeCyclePerf (app.js:76251)
    at ReactCompositeComponentWrapper.updateComponent (app.js:76799)
    at ReactCompositeComponentWrapper.receiveComponent (app.js:76722)
    at Object.receiveComponent (app.js:69007)
    at Object.updateChildren (app.js:75997)
    at ReactDOMComponent._reconcilerUpdateChildren (app.js:75550)

What is the expected behavior?
Deletes the character

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Head of master - d2a3ae
MacOS
I tried it in the v0.10.5 release but I couldn't build the example - it gets sh: babel-node: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0