Skip to content

Guide: TransitionGroup page falsely implies Transition renders a wrapper element #3454

Description

@cartr

The "TransitionGroup" page of the guide includes the following text:

Differences from <Transition>

<TransitionGroup> supports the same props, CSS transition classes, and JavaScript hook listeners as <Transition>, with the following differences:

  • By default, it doesn't render a wrapper element. But you can specify an element to be rendered with the tag prop.
  • [...]

This implies that <Transition> does render a wrapper element. But actually, in Vue 3, it appears that neither <Transition> nor <TransitionGroup> renders a wrapper element by default, so this isn't really a "difference".

(This language seems to have been introduced by #649.)

I'm new to Vue, so maybe there's something I'm not understanding here, but it seems like this should maybe be revised to say something like:

  • A tag prop can be passed to render a wrapper element. (By default, <TransitionGroup> doesn't render a wrapper element, similar to <Transition>.)

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