Skip to content

Commit ea503aa

Browse files
committed
Merge pull request marcj#62 from rhuynh/patch-1
Fix to properly add the tracked elements
2 parents 6fbaa67 + 226f8cf commit ea503aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElementQueries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
}
149149
element.elementQueriesSetupInformation.call();
150150

151-
if (this.withTracking) {
151+
if (ElementQueries.instance.withTracking && elements.indexOf(element) < 0) {
152152
elements.push(element);
153153
}
154154
}

0 commit comments

Comments
 (0)