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 db8d8e5 commit ad58ecaCopy full SHA for ad58eca
web_src/js/utils/dom.ts
@@ -331,7 +331,7 @@ export function animateOnce(el: Element, animationClassName: string): Promise<vo
331
});
332
}
333
334
-export function querySingleVisibleElem<T extends HTMLElement>(parent: Element, selector: string) : T | null {
+export function querySingleVisibleElem<T extends HTMLElement>(parent: Element, selector: string): T | null {
335
const elems = parent.querySelectorAll<HTMLElement>(selector);
336
const candidates = Array.from(elems).filter(isElemVisible);
337
if (candidates.length > 1) throw new Error(`Expected exactly one visible element matching selector "${selector}", but found ${candidates.length}`);
0 commit comments