-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Issue with vs-switch $refs.on and $refs.off #726
Comments
I had the same issue, but instead with VsPrompt. This happens because it tries to find find the button to change the click animation, but when nextTick happens the button does not exist anymore. The issue is at vuesax/src/components/vsButton/vsButton.vue Lines 270 to 302 in 3f03427
This entire block should be wrapped with an if first if (this.$refs.btn) {
...
} |
Seem it's also related to #611 |
iomariani
added a commit
to iomariani/vuesax
that referenced
this issue
Oct 7, 2020
*Bug:* Whenever the click of a VsButton happens it triggers a nextTick, but if the button does not exist anymore there will throw the error: `Cannot read property 'clientWidth' of undefined` *Fix: * Check if button reference still exists when nextTick happens.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your OS : Ubuntu 18.10 (Issue seems to be on mac os x)
Node.js version 11.10.1
Vuesax version 3.11.1
Browser version chrome 78
Which package manager did you use for the install? npm
Hello,
i have an issue with vs-switch :
it seems related to $refs.on and $refs.off in mounted hook inside vs-switch.
Sometimes it's not defined
The data i have :
thanks.
The text was updated successfully, but these errors were encountered: