Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using "Heading" extension, this component won't unmount #481

Open
yz3358 opened this issue Dec 19, 2023 · 0 comments
Open

When using "Heading" extension, this component won't unmount #481

yz3358 opened this issue Dec 19, 2023 · 0 comments
Labels

Comments

@yz3358
Copy link

yz3358 commented Dec 19, 2023

Describe the bug
When using "Heading" extension, component won't unmount properly.
This is actually quite serious, when component can't unmount, the vue-router fails to navigate to next page.

To Reproduce
Steps to reproduce the behavior:

  1. Register the component as doc intended, including the "Heading" extension (with configure or not doesn't matter)
  2. Put the component in PageA, navigate to PageA, the component displayed as expected.
  3. Navigate to PageB
  4. See error
    Uncaught (in promise) TypeError: Cannot read properties of null (reading 'exposed')
    at getExposeProxy (chunk-GEFBBB5D.js?v=ec5423d8:6314:16)
    at setRef (chunk-GEFBBB5D.js?v=ec5423d8:4310:42)
    at unmount (chunk-GEFBBB5D.js?v=ec5423d8:5469:7)
    at unmountChildren (chunk-GEFBBB5D.js?v=ec5423d8:5587:7)
    at unmount (chunk-GEFBBB5D.js?v=ec5423d8:5496:9)
    at unmountComponent (chunk-GEFBBB5D.js?v=ec5423d8:5567:7)
    at unmount (chunk-GEFBBB5D.js?v=ec5423d8:5482:7)
    at unmountComponent (chunk-GEFBBB5D.js?v=ec5423d8:5567:7)
    at unmount (chunk-GEFBBB5D.js?v=ec5423d8:5482:7)
    at unmountChildren (chunk-GEFBBB5D.js?v=ec5423d8:5587:7)

From the call stack, I guess this should be a vue runtime error.
Also, toggle a boolean value with v-if will trigger the same error. The component won't go away as expected.

If "Heading" extension is removed, everything works fine. I guess there's something wrong with that extenstion.

Expected behavior
The component should unmount.

Desktop (please complete the following information):

  • OS: MacOS 13.3
  • Browser: chrome
  • Version: Version 120.0.6099.109 (Official Build) (arm64)

Additional context
"vue": "3.2.45"
"vite": "^3.2.7"
"element-plus": "^2.4.3"
"element-tiptap": "^2.2.1"

@yz3358 yz3358 added the bug label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant