Skip to content

TransitionGroup: error on next update after standalone child (not v-for) was removed  #1104

@jonaskuske

Description

@jonaskuske

Version

3.0.0-beta.6

Reproduction link

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

Steps to reproduce

  1. Click Remove "Three"
  2. Click Shuffle
  3. Check console

What is expected?

The remaining items ("One" and "Two") are shuffled and rendered.

What is actually happening?

TypeError: child.el.getBoundingClientRect is not a function
    at Proxy.<anonymous> (vue.esm-browser.js:10946)
    at renderComponentRoot (vue.esm-browser.js:5010)
    at componentEffect (vue.esm-browser.js:7809)
    at reactiveEffect (vue.esm-browser.js:3977)
    at callWithErrorHandling (vue.esm-browser.js:4815)
    at flushJobs (vue.esm-browser.js:4957)

Removing items from a list that's rendered via v-for works as expected, the error happens only if the removed node was "standalone".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions