docs: clarify TransitionGroup wrapper element difference from Transition - #3455
Open
lazerg wants to merge 1 commit into
Open
docs: clarify TransitionGroup wrapper element difference from Transition#3455lazerg wants to merge 1 commit into
lazerg wants to merge 1 commit into
Conversation
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Problem
The "Differences from
<Transition>" section of the TransitionGroup guide lists "By default, it doesn't render a wrapper element" as a difference, which reads as though<Transition>does render one. It doesn't. In Vue 3,<TransitionGroup>renders a fragment unless thetagprop is set, and<Transition>renders its single child directly.Proposed Solution
Reword the bullet so the actual difference is the
tagprop, and state that neither component renders a wrapper by default.Additional Information
The wording comes from #649, which corrected the Vue 2 behavior (a
<span>root) but left the bullet in the differences list.Closes #3454