Skip to content

Commit 35c54dc

Browse files
committed
Update codeit-autocomplete.js
1 parent d40ddec commit 35c54dc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/plugins/codeit-autocomplete.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,19 @@ function moveSuggestionsToCaret(cursor) {
427427
}
428428

429429

430+
input.on('scroll', () => {
431+
432+
if (suggestions.classList.contains('visible')) {
433+
434+
const cursor = cd.dropper.cursor();
435+
436+
moveSuggestionsToCaret(cursor);
437+
438+
}
439+
440+
});
441+
442+
430443

431444
let preference = {};
432445

0 commit comments

Comments
 (0)