We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, thanks for the great component!
I just noted that the component registers an EventListener on document in the mounted hook. To prevent memory leaks, it should be removed via the beforeDestroy hook when the component is unmounted.
document
E.g.:
{ mounted () { document.addEventListener('click', this.handleClickOutside); }, beforeDestroy () { document.removeEventListener('click', this.handleClickOutside); }, methods: { handleClickOutside(e) => { if (e.target !== this.$refs['taginput']) { this.clearSearchResults(); } } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for the great component!
I just noted that the component registers an EventListener on
document
in the mounted hook. To prevent memory leaks, it should be removed via the beforeDestroy hook when the component is unmounted.E.g.:
The text was updated successfully, but these errors were encountered: