-
-
Notifications
You must be signed in to change notification settings - Fork 988
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
Cannot read property 'blur' of undefined #1421
Comments
Thanks for reporting! |
You need replace |
Looks like ln 677 of multiselectMixin.js if (this.searchable) {
this.$refs.search && this.$refs.search.blur()
} else {
this.$el.blur()
} ends up compiling to
|
Is there any chance of fixing this? |
@atilkan if you could help me verify if the linked PR works, then I could try to release that fix in the next 2 weeks. |
I myself am running into problems using optional chaining. See: |
I looked at it and I can verify that the changes made in the linked PR work. |
Hi there, i have a problem while using
vue-multiselect
, i usenuxtjs
, andvue-multiselect v2.1.6
and the problem or bugs i found is :i got an error when i focused / open the select option this multiselect, and then try to redirect to previous page using back button in my chrome, the error message is :
Cannot read property 'blur' of undefined
the only thread i found for fixing my problem said that i have to write this one :
beforeDestroy(){ this.$refs.myMultiSelect.deactivate(); },
but still got an error
Cannot read property 'blur' of undefined
and a new one :TypeError: Cannot read property 'deactivate' of undefined
so what should i do for fixing my problem ? any help will be very appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: