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

template slot content disappears on subsequent visit #2837

Closed
Centaur opened this issue May 10, 2016 · 1 comment
Closed

template slot content disappears on subsequent visit #2837

Centaur opened this issue May 10, 2016 · 1 comment
Labels

Comments

@Centaur
Copy link

Centaur commented May 10, 2016

Vue.js version

1.0.22 (works fine in 1.0.21)

Reproduction Link

http://www.webpackbin.com/EyyK3F9b-

Steps to reproduce

click button 'view2' then click button 'view1'

What is Expected?

both 'template slot content' and 'nontemplate slot content' should show.

What is actually happening?

'template slot content' disappeared

@pespantelis
Copy link

Avoid to use the template tag as a wrapper. You could use a div instead.

<!-- avoid this -->
<template slot="fillme">
  template slot content
</template>

<!-- use this -->
<div slot="fillme">
  template slot content
</div>

#681 (comment)

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

3 participants