Skip to content

Commit

Permalink
fix: increment traversal if not shadow root
Browse files Browse the repository at this point in the history
  • Loading branch information
dbajpeyi committed Nov 22, 2024
1 parent 9aa8f12 commit 1c700c4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/autofill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/Scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ class DefaultScanner {
if (root instanceof ShadowRoot && root.host) {
// @ts-ignore
element = root.host;
} else {
traversalLayerCount++;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions swift-package/Resources/assets/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions swift-package/Resources/assets/autofill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c700c4

Please sign in to comment.