]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(Portal): add ability to use element as target (#380)
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
Sat, 26 Oct 2019 14:32:16 +0000 (17:32 +0300)
committerEvan You <yyx990803@gmail.com>
Sat, 26 Oct 2019 14:32:16 +0000 (10:32 -0400)
packages/runtime-core/src/createRenderer.ts

index ed55fe0a902a9447f16e21d5159aa359c9eb9273..3473f53bd1423718133127dbb1bb67a634b6bf86 100644 (file)
@@ -657,7 +657,7 @@ export function createRenderer<
     if (n1 == null) {
       const target = (n2.target = isString(targetSelector)
         ? hostQuerySelector(targetSelector)
-        : null)
+        : targetSelector)
       if (target != null) {
         if (shapeFlag & ShapeFlags.TEXT_CHILDREN) {
           hostSetElementText(target, children as string)