-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix: Vue 2/3 lifecycle type errors and script tag cleanup #79
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@i7eo have you had a chance to look at this? Let me know if any edits are needed to get this merged in. It would be great to get this fixed so I can start using this package on my site |
Sorry guys, I've been very busy lately. I checked your pr and there is no problem, it has been merged |
You can check version 0.1.2, Thanks @ubercj 👏 |
Sweet, thanks @i7eo! I updated to v0.1.2 and it's working great for me 👍 |
@all-contributors please add @ubercj for code |
I've put up a pull request to add @ubercj! 🎉 |
Purpose of PR
This PR is to address a couple of bug issues:
#73
googleTranslateSelectObserve
andhtmlAttrLangObserve
are now checked fornull
duringonBeforeUnmount
. It looks like this is actually already done in the React package, so the Vue packages should be the same now.#78
createScript
is now removed inonBeforeUnmount
. Then, when the page changes, a new script tag is inserted duringonMounted
and the script is run to reinject the.goog-te-combo
element in the DOM. This ensures that the hiddenselect
tag (.goog-te-combo
) is present in between page loads in a SPA, for example.PR Checklist
readme.md
file(s)