Skip to content

Commit b035686

Browse files
jlukicCopilot
andauthored
Bug: Fix debug of next position
Co-authored-by: Copilot <[email protected]>
1 parent f706485 commit b035686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/behaviors/attach/attach.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ const createBehavior = ({ $, $el, el, self, attachEvent, cache, settings, dispat
417417
self.fallbacksTested++;
418418
if (isNumber(nextPosition)) {
419419
const index = nextPosition - 1; // positions are 1-indexed
420-
debug('Next position is', self.positions[nextPosition]);
420+
debug('Next position is', self.positions[index]);
421421
return self.positions[index] || null;
422422
}
423423
// if its a string its just the position name (user specified)

0 commit comments

Comments
 (0)