File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ import { getConfig } from '../config';
3
3
import { isHiddenFromAccessibility } from './accessiblity' ;
4
4
5
5
interface FindAllOptions {
6
+ /** Match elements hidden from accessibility */
6
7
includeHiddenElements ?: boolean ;
7
8
8
9
/** RTL-compatible alias to `includeHiddenElements` */
9
10
hidden ?: boolean ;
10
11
11
12
/* Exclude any ancestors of deepest matched elements even if they match the predicate */
12
- deepestOnly ?: boolean ;
13
+ matchDeepestOnly ?: boolean ;
13
14
}
14
15
15
16
export function findAll (
@@ -53,8 +54,8 @@ function findAllInternal(
53
54
} ) ;
54
55
55
56
if (
56
- // Deepest only mode : add current element only if no descendants match
57
- ( ! options ?. deepestOnly || matchingDescendants . length === 0 ) &&
57
+ // When matchDeepestOnly = true : add current element only if no descendants match
58
+ ( ! options ?. matchDeepestOnly || matchingDescendants . length === 0 ) &&
58
59
predicate ( root )
59
60
) {
60
61
results . push ( root ) ;
You can’t perform that action at this time.
0 commit comments