Skip to content

Commit 68d7836

Browse files
authored
Merge pull request #222 from MakingStuffs/main
Chore: Update the return of the closest function
2 parents 8256dcf + ecbdf95 commit 68d7836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export default class HTMLElement extends Node {
616616
},
617617
});
618618
if (e) {
619-
return e;
619+
return e as HTMLElement;
620620
}
621621
el = el.parentNode;
622622
}

0 commit comments

Comments
 (0)