Skip to content
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

Bug: The @values event is not sent after the v-selectmenu component is re-rendered #27

Open
benje opened this issue Sep 11, 2019 · 3 comments

Comments

@benje
Copy link

benje commented Sep 11, 2019

Description of bug

I have an instance of v-selectmenu that is toggled on/off using the Vuejs v-if directive. I also listen to the @values event on this component.

<v-selectmenu v-if="condition" @values="onValuesEvent" ...

If the component is hidden and re-rendered when condition changes from true to false to true, the @values event is no longer emitted!

@TerryZ
Copy link
Owner

TerryZ commented Sep 12, 2019

I tried v-if set to true => false => true, @values event still working in my case.

You can upload your code to somewhere like jsFiddle, CodePen, then i can see what happen.

@TerryZ
Copy link
Owner

TerryZ commented Sep 12, 2019

You can try the first example in v-selectmenu CodePen.

@benje
Copy link
Author

benje commented Sep 12, 2019

Thanks for the quick reply @TerryZ , I will prepare a CodePen that demonstrates the issue soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants