Skip to content

fix(runtime-core):transition missing root node warning used in prod #6752 #6783

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

Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b8b68a9
fix(runtime-core):transition missing root node warning used in prod #…
Sep 30, 2022
c513858
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Oct 4, 2022
8af0965
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Dec 26, 2022
7eaaf7e
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Jan 2, 2023
eecbcce
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Jan 9, 2023
cc75f49
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Jan 14, 2023
bae960d
Merge remote-tracking branch 'origin/main' into bwsy/fix/componentRen…
baiwusanyu-c Feb 4, 2023
085ad8a
Merge branch 'vuejs:main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Feb 6, 2023
9c33f93
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Feb 14, 2023
22be5fb
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Feb 21, 2023
01ccd6f
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Feb 22, 2023
ba61d3b
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Mar 17, 2023
8f942b1
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Mar 20, 2023
c490ad4
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Mar 23, 2023
961c8c1
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Mar 27, 2023
0ab3367
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 6, 2023
dd6b7e9
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 10, 2023
982311b
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 11, 2023
90660f2
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 14, 2023
b21ebd2
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 17, 2023
1a350e1
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 19, 2023
4baffad
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Apr 20, 2023
ac86efb
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c May 4, 2023
608b954
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c May 16, 2023
4689634
Merge branch 'main' into bwsy/fix/componentRenderUtils
baiwusanyu-c Jan 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function renderComponentRoot(

// inherit directives
if (vnode.dirs) {
if (__DEV__ && !isElementRoot(root)) {
if (!isElementRoot(root)) {
warn(
`Runtime directive used on component with non-element root node. ` +
`The directives will not function as intended.`,
Expand All @@ -238,7 +238,7 @@ export function renderComponentRoot(
}
// inherit transition data
if (vnode.transition) {
if (__DEV__ && !isElementRoot(root)) {
if (!isElementRoot(root)) {
warn(
`Component inside <Transition> renders non-element root node ` +
`that cannot be animated.`,
Expand Down