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

Functional component fails depending on the siblings around it #8101

Closed
lykahb opened this issue Apr 28, 2018 · 1 comment · Fixed by #8114
Closed

Functional component fails depending on the siblings around it #8101

lykahb opened this issue Apr 28, 2018 · 1 comment · Fixed by #8114

Comments

@lykahb
Copy link

lykahb commented Apr 28, 2018

Version

2.5.16

Reproduction link

https://jsfiddle.net/lykahb/9grbbt4b/

Steps to reproduce

  1. Create a functional component that returns several root nodes
  2. Use it with is binding, like <div is='my-component'> with no siblings around it
  3. Render the template

What is expected?

Renders correctly

What is actually happening?

Renders a string "undefined" with no console errors


It is interesting that it may render successfully depending on the siblings around it. There are several examples in the link.

@posva posva added the bug label Apr 28, 2018
@posva
Copy link
Member

posva commented Apr 28, 2018

Works using component instead of div though 🤔

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

Successfully merging a pull request may close this issue.

3 participants