Vue.js version
2.0.0-rc.3
Reproduction Link
http://codepen.io/analog-nico/pen/dXBRBG
Steps to reproduce
- Click the link "Open popup using v-if"
- A badly designed popup opens
- Click the "Close" link
- For this first time the popup closes successfully
- Click the link "Open popup using v-if" again
- The popup opens again
- Click the "Close" link
What is Expected?
- Again, the popup closes successfully
What is actually happening?
- Vue fails to call an internal function that got missing.
- The
closePopupUsingVIf function attached to the "Close" link's click event never gets called.
- The popup does not close.
For reference the codepen contains the exact same implementation of the popup with the only difference that it uses v-show instead of v-if to show/hide the popup. v-show works perfectly.