v-selectmenu
v-selectmenu copied to clipboard
Bug: The `@values` event is not sent after the v-selectmenu component is re-rendered
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!
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.
You can try the first example in v-selectmenu CodePen.
Thanks for the quick reply @TerryZ , I will prepare a CodePen that demonstrates the issue soon!