Skip to content

Commit ad58eca

Browse files
authored
Update web_src/js/utils/dom.ts
1 parent db8d8e5 commit ad58eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export function animateOnce(el: Element, animationClassName: string): Promise<vo
331331
});
332332
}
333333

334-
export function querySingleVisibleElem<T extends HTMLElement>(parent: Element, selector: string) : T | null {
334+
export function querySingleVisibleElem<T extends HTMLElement>(parent: Element, selector: string): T | null {
335335
const elems = parent.querySelectorAll<HTMLElement>(selector);
336336
const candidates = Array.from(elems).filter(isElemVisible);
337337
if (candidates.length > 1) throw new Error(`Expected exactly one visible element matching selector "${selector}", but found ${candidates.length}`);

0 commit comments

Comments
 (0)