fix(Portal): add ability to use element as target (#380)
This commit is contained in:
		
							parent
							
								
									b788c03992
								
							
						
					
					
						commit
						49914efc9e
					
				@ -657,7 +657,7 @@ export function createRenderer<
 | 
				
			|||||||
    if (n1 == null) {
 | 
					    if (n1 == null) {
 | 
				
			||||||
      const target = (n2.target = isString(targetSelector)
 | 
					      const target = (n2.target = isString(targetSelector)
 | 
				
			||||||
        ? hostQuerySelector(targetSelector)
 | 
					        ? hostQuerySelector(targetSelector)
 | 
				
			||||||
        : null)
 | 
					        : targetSelector)
 | 
				
			||||||
      if (target != null) {
 | 
					      if (target != null) {
 | 
				
			||||||
        if (shapeFlag & ShapeFlags.TEXT_CHILDREN) {
 | 
					        if (shapeFlag & ShapeFlags.TEXT_CHILDREN) {
 | 
				
			||||||
          hostSetElementText(target, children as string)
 | 
					          hostSetElementText(target, children as string)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user