Skip to content

Error when unloading component while having suggestion menu open #2138

@SimonSimCity

Description

@SimonSimCity

Describe the bug

If the BlockNoteView component is unmounted while the suggestion menu is open, the following error is thrown:

Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet.

https://jam.dev/c/8f9db200-26a1-4a9a-af0e-f923a6b3cce9

To Reproduce

https://stackblitz.com/edit/github-gt3v6nbk?file=src%2FApp.tsx

Misc

  • Node version: v20.19.1.
  • Package manager: pnpm
  • Browser: Chrome
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions