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

scoped style not working in slot #10565

Closed
shuai-z opened this issue Sep 26, 2019 · 1 comment
Closed

scoped style not working in slot #10565

shuai-z opened this issue Sep 26, 2019 · 1 comment

Comments

@shuai-z
Copy link

shuai-z commented Sep 26, 2019

Version

2.6.10

Reproduction link

https://codesandbox.io/embed/vue-template-ed9kk

Steps to reproduce

  • click button

What is expected?

Text "red" should be in red.

What is actually happening?

Text "red" is black.


class="foo" is needed to make the OLD and NEW vnode the same (in sameVnode), so that Vue will try to patch instead of creating a new element.

@posva
Copy link
Member

posva commented Sep 26, 2019

Duplicate of #10452

@posva posva marked this as a duplicate of #10452 Sep 26, 2019
@posva posva closed this as completed Sep 26, 2019
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