We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dde52 commit 6a2ed96Copy full SHA for 6a2ed96
src/mnml.ts
@@ -83,7 +83,7 @@ export const mnml = (() => {
83
return elem.closest(selector) || null;
84
};
85
86
- const findParents = (elem: HTMLElement, selector: string): HTMLElement[] => {
+ const findParents = (elem: HTMLElement, selector: string = "*"): HTMLElement[] => {
87
const parents = [];
88
let parent: HTMLElement | null = elem;
89
while ((parent = parent.parentElement)) {
0 commit comments