Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit ee3d2cf

Browse files
committed
feat: filter out properties from query results
1 parent 2ba51ba commit ee3d2cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/query-helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function queryAllByProp(
7272

7373
return allNodes
7474
.filter((node, index) => (filter ? filter(node, index) : defaultFilter(node, index)))
75-
.filter(node => matcher(node.props[attribute], baseElement, text, matchNormalizer));
75+
.filter(node => matcher(node.props[attribute], baseElement, text, matchNormalizer))
76+
.map(removeBadProperties);
7677
}
7778

7879
function queryByProp(...args) {

0 commit comments

Comments
 (0)