Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 59da69e

Browse files
committed
fix for: tab completion popup does not scroll properly
Fixes #880
1 parent fb74e2b commit 59da69e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/plugins/ui/commands/tab-completion.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ const listenForUpDown = prompt => {
148148
if (next) {
149149
current.classList.remove('selected')
150150
next.classList.add('selected')
151+
next.scrollIntoViewIfNeeded(false)
151152
evt.preventDefault() // prevent REPL processing
152153
}
153154
}
@@ -565,6 +566,7 @@ module.exports = () => {
565566
if (next) {
566567
current.classList.remove('selected')
567568
next.classList.add('selected')
569+
next.scrollIntoViewIfNeeded(false)
568570
}
569571
return
570572
}

0 commit comments

Comments
 (0)