From 8084156f4d0b572716a685a561d5087cddceab2c Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 12 Jun 2020 12:14:39 -0400 Subject: [PATCH] fix(runtime-core): mount children before setting element props fix #1318, close #1320 --- packages/runtime-core/src/renderer.ts | 31 ++++++++++--------- .../__tests__/testRuntime.spec.ts | 12 +++---- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index b306b9f2..d64460ad 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -672,6 +672,23 @@ function baseCreateRenderer( isSVG, props && props.is ) + + // mount children first, since some props may rely on child content + // being already rendered, e.g. `