Skip to content

[Vue 2.0]named slot disappear #3400

@carrytao

Description

@carrytao

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

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