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

TransitionGroup errors if there are other children in addition to v-for #1045

Closed
jonaskuske opened this issue Apr 25, 2020 · 0 comments · Fixed by #1046
Closed

TransitionGroup errors if there are other children in addition to v-for #1045

jonaskuske opened this issue Apr 25, 2020 · 0 comments · Fixed by #1046

Comments

@jonaskuske
Copy link
Contributor

Version

3.0.0-beta.4

Reproduction link

https://codepen.io/21stCenturyJonas/pen/QWjpJWm

Steps to reproduce

  1. Check the console
  2. Click shuffle

What is expected?

Vue renders without a warning. When the shuffle button is clicked, the elements are reordered.

What is actually happening?

Vue immediately warns, even though all children are keyed:

[Vue warn]: <TransitionGroup> children must be keyed. 
  at <Anonymous> 
  at <App>

When I click shuffle, it errors:

[Vue warn]: Unhandled error during execution of render function 
  at <Anonymous> 
  at <App>

TypeError: child.el.getBoundingClientRect is not a function
    at Proxy.<anonymous> (vue.esm-browser.js:11116)
    at renderComponentRoot (vue.esm-browser.js:5002)
    at componentEffect (vue.esm-browser.js:7729)
    at reactiveEffect (vue.esm-browser.js:3967)
    at callWithErrorHandling (vue.esm-browser.js:4807)
    at flushJobs (vue.esm-browser.js:4949)

If "other node" is removed or commented out, everything works as expected.

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

Successfully merging a pull request may close this issue.

1 participant