Skip to content

Compatibility issue with react-router-dom #238

@ThreePalmTrees

Description

@ThreePalmTrees

Environment

  • @editorjs/editorjs version: 2.28.2
  • react-editor-js version: 2.1.0

CodeSandbox

https://codesandbox.io/p/sandbox/react-editor-js-v2-forked-rpg3yt

Describe

Using react-editor-js with react-router-dom v6.20.1 displays the editor for a split second, then it's removed.
Removing react-router-dom renders the editor correctly.

In the CodeSandbox link, click the button (go to /editor and go to root /) to see the behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions