Skip to content

Function wiring breaks for components that show/hide slot content using v-if #3518

@analog-nico

Description

@analog-nico

Vue.js version

2.0.0-rc.3

Reproduction Link

http://codepen.io/analog-nico/pen/dXBRBG

Steps to reproduce

  1. Click the link "Open popup using v-if"
  2. A badly designed popup opens
  3. Click the "Close" link
  4. For this first time the popup closes successfully
  5. Click the link "Open popup using v-if" again
  6. The popup opens again
  7. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions