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

[Vue] use jquery $destroy event instead of scope one #18271

Merged
merged 1 commit into from Nov 4, 2021

Conversation

diosmosis
Copy link
Member

Description:

Using the scope $destroy event seems to destroy the vue component at the wrong time resulting in vue elements disappearing while the angularjs adapters are still around. I suspect it's because the $destroy scope event is broadcasted, but wasn't able to confirm. Now we destroy the vue element only if the angularjs element is about to be removed from the dom.

Review

@diosmosis diosmosis added the Needs Review PRs that need a code review label Nov 4, 2021
@diosmosis diosmosis added this to the 4.6.0 milestone Nov 4, 2021
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense.

@diosmosis diosmosis merged commit 2d44ca2 into 4.x-dev Nov 4, 2021
@diosmosis diosmosis deleted the vue-jquery-destroy branch November 4, 2021 21:10
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants