File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ export function createMethods<ElementType extends ElementList>(
413413 clone ?: boolean
414414 ) : PushReturn < T , ElementType > {
415415 // @ts -expect-error Check if el is FastjsDom | FastjsDomList
416- el = el . el ? el : el . el ( ) ;
416+ el = el . tagName ? el : el . el ( ) ;
417417
418418 type IsReplace < T > = T extends "replaceElement" ? true : false ;
419419 const isReplace = ( target === "replaceElement" ) as IsReplace < T > ;
@@ -505,7 +505,7 @@ export function createMethods<ElementType extends ElementList>(
505505 clone ?: boolean
506506 ) : InsertReturn < ElementType > {
507507 // @ts -expect-error Check if el is FastjsDom | FastjsDomList
508- el = el . el ? el : el . el ( ) ;
508+ el = el . tagName ? el : el . el ( ) ;
509509
510510 const newElement = createFastjsDom ( clone ? el . cloneNode ( true ) : el ) ;
511511 if ( typeof target === "number" ) {
You can’t perform that action at this time.
0 commit comments