Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two slot issues with v-if #3437

Closed
blocka opened this issue Aug 12, 2016 · 0 comments
Closed

Two slot issues with v-if #3437

blocka opened this issue Aug 12, 2016 · 0 comments

Comments

@blocka
Copy link

blocka commented Aug 12, 2016

Vue.js version

2.0-rc.1

Reproduction Link

https://jsfiddle.net/opa5v03j/

Steps to reproduce

  1. Type something in field, and hit toggle. An alert will show saying "Goodbye!".
  2. Hit toggle again, the field will reappear, with the same text
  3. Hit toggle a third time, the field disappear

What is Expected?

  1. The text should be gone. The goodbye alert came from the beforeDestroy callback, which indicates the component should be...destroyed.
  2. The goodbye message should appear again, since the it should be getting destroyed, like in 1)

This fiddle in 1.0.26 works as expected https://jsfiddle.net/gaxfLqj6/

What is actually happening?

  1. The text is remaining
  2. The goodbye message is not showing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants