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 VsButton #611
Comments
Hello, this seems resolved in the new version, i don't know what the issue was, but it's gone. thanks. |
I fixed it by changing |
After further testing I can confirm it has to do with the button being removed by the parent. When changing |
@NoahCardoza @luisDanielRoviraContreras I tried
And if I close the popup I see the error. Any idea would be appreciated :) Thank you, |
Like I said, try using v-show. I think the button is trying to access the parent which cases errors when it mysteriously disappears from the DOM. The whole thing seems kinda silly, I have no idea why it would need to access the parent... but it is what it is. |
It's a dialog, once clicked, both the button and the parent dialog disappear. |
@NoahCardoza as I said I put the code on the "Application" root component. So there is no |
Ah yes, I remember now, I was using a custom component that acted like a dialog, which is how I found this issue. The code looked something like this: <template>
<MyPopover v-show="active">
<v-button @click="active = false">Close</v-button>
</MyPopover>
</template> Where the popovers position was set to absolute and centered across the screen. Which is basically the same as the dialog component created by I wonder if it has anything to do with the animations that occur on clicking? |
@NoahCardoza maybe you are god, thanks a lot......... |
Working for me, thanks! |
Any way of solving this error without building custom components like your case? |
it depends on your case, you could try the @click.native thing and see if that solve your issue, |
I was having problems with the button to close the sidebar and switch screens, as well as giving this error on the button the second time, the sidebar would not close. |
Hello,
we have an issue with VsButton,
line 252 to line 255 :
sometimes
this.$refs.btn
is undefined and btn.clientWidth fails :it happens when using the button with a vs prompt.
do you have any idea why this is happening ?
thanks.
The text was updated successfully, but these errors were encountered: