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

Riot v4 inserts the elements not in <slot /> #2774

Closed
1 of 7 tasks
Qs-F opened this issue Oct 19, 2019 · 1 comment
Closed
1 of 7 tasks

Riot v4 inserts the elements not in <slot /> #2774

Qs-F opened this issue Oct 19, 2019 · 1 comment

Comments

@Qs-F
Copy link

Qs-F commented Oct 19, 2019

Help us to manage our issues by answering the following:

  1. Describe your issue:

With Riot v4, the elements which exists in pre-mounted tag in caller file (like index.html) is inserted into riot tag not the place in exists.

For example, if <my-tag><h1>hello</h1></my-tag> is in index.html and <my-tag><div><slot /></div></my-tag> is in my-tag.riot, the outcome will be <my-tag><h1>hello</h1><div></div></my-tag>. I expect the result like <my-tag><div><h1>hello</h1></div></my-tag>.

I think this is a bug cuz with Riot v3 I could not see such a behavior.

  1. Can you reproduce the issue?

Yes.

Riot v4 example
Riot v3 comparison

  1. On which browser/OS does the issue appear?

Chrome/Mac

  1. Which version of Riot does it affect?

4.6.5

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@Qs-F
Copy link
Author

Qs-F commented Oct 20, 2019

Same as #2772 .

@Qs-F Qs-F closed this as completed Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants