<h3 dir="auto">Version</h3>
<p dir="auto">2.5.13</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/x78pz6u1/7/" rel="nofollow">https://jsfiddle.net/x78pz6u1/7/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>click emit1, alert something, no problem.</li>
<li>click switch.</li>
<li>click emit2, alert again, not expected!</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">not alert when I click the button emit2</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">alert when I click the button emit2</p>
<hr>
<p dir="auto">not considering the edge case: listeners are removed on component reuse.<br>
perhaps a bug at line 260 in v2.5.13/src/core/instance/lifecycle.js</p>
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.13</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/posva/pen/baeJzd?editors=1111" rel="nofollow">https://codepen.io/posva/pen/baeJzd?editors=1111</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">define a custom component witch emit custom event;<br>
use v-if v-else create 2 component instances;<br>
on first instance use v-on listen the custom event, the second DONOT;<br>
toggle the v-if condition;<br>
emit the custom event on the second instance</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">the listener on the first instance not been triggered</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">the listener on the first instance been triggered</p>