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

Directive "unmounted" hook not called when wrapped in a Teleport #6498

Closed
Stnaire opened this issue Aug 18, 2022 · 1 comment
Closed

Directive "unmounted" hook not called when wrapped in a Teleport #6498

Stnaire opened this issue Aug 18, 2022 · 1 comment

Comments

@Stnaire
Copy link

Stnaire commented Aug 18, 2022

Vue version

3.2.37

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-s84vrc?file=src/App.vue

Steps to reproduce

Click on the "Toggle components" button to show / hide the inputs. The "Mounted count" should switch between 0 and 1.
Then click the "Toggle teleport" checkbox to enable the bugged input.

What is expected?

The "Mounted count" is always expected to be 0 when there is no input visible.

What is actually happening?

If "Toggle teleport" is checked, the counter only decrement by 1 when the inputs are hidden. Meaning the "unmounted" hook is not called.

System Info

No response

Any additional comments?

No response

@LinusBorg
Copy link
Member

duplicate of #6347

@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants