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

[Vue 2.0]named slot disappear #3400

Closed
carrytao opened this issue Aug 7, 2016 · 1 comment
Closed

[Vue 2.0]named slot disappear #3400

carrytao opened this issue Aug 7, 2016 · 1 comment
Labels

Comments

@carrytao
Copy link

carrytao commented Aug 7, 2016

Vue.js version

2.0.0-beta.7

Reproduction Link

http://jsbin.com/walejonumi/1/edit?html,js,output

Steps to reproduce

focus the input

What is Expected?

The before slot should not disappear

What is actually happening?

The before slot disappears

If you switch to Vue 1.x, it works fine.
I use render function later and find that in the first render, this.$slots.before and this.$slots.default all exist, but when re-rendered, this.$slots.before is undefined, and all the slot come into this.$slots.default

@carrytao
Copy link
Author

carrytao commented Aug 7, 2016

Find another question in the demo. When this.focus change, the wrapClass updated, but the class on the dom doesn't update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants