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>(
413
413
clone ?: boolean
414
414
) : PushReturn < T , ElementType > {
415
415
// @ts -expect-error Check if el is FastjsDom | FastjsDomList
416
- el = el . el ? el : el . el ( ) ;
416
+ el = el . tagName ? el : el . el ( ) ;
417
417
418
418
type IsReplace < T > = T extends "replaceElement" ? true : false ;
419
419
const isReplace = ( target === "replaceElement" ) as IsReplace < T > ;
@@ -505,7 +505,7 @@ export function createMethods<ElementType extends ElementList>(
505
505
clone ?: boolean
506
506
) : InsertReturn < ElementType > {
507
507
// @ts -expect-error Check if el is FastjsDom | FastjsDomList
508
- el = el . el ? el : el . el ( ) ;
508
+ el = el . tagName ? el : el . el ( ) ;
509
509
510
510
const newElement = createFastjsDom ( clone ? el . cloneNode ( true ) : el ) ;
511
511
if ( typeof target === "number" ) {
You can’t perform that action at this time.
0 commit comments