Skip to content

Commit 911b8b8

Browse files
committed
fix(pat inject): Fix scrolling behavior, where the scrolling target could not be found.
1 parent e819b84 commit 911b8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/inject/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ const inject = {
501501
const scroll_target =
502502
cfg.scroll === "target"
503503
? cfg.$target[0]
504-
: $injected.filter(cfg.scroll)[0];
504+
: $(cfg.scroll, $injected)[0];
505505

506506
// Get the reference element to which against we calculate
507507
// the relative position of the target.

0 commit comments

Comments
 (0)