v-selectmenu icon indicating copy to clipboard operation
v-selectmenu copied to clipboard

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

Open benje opened this issue 5 years ago • 3 comments

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!

benje avatar Sep 11 '19 16:09 benje

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 avatar Sep 12 '19 03:09 TerryZ

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

TerryZ avatar Sep 12 '19 03:09 TerryZ

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

benje avatar Sep 12 '19 09:09 benje