« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 3d65d27..740b7f9 100644
--- a/ui.js
+++ b/ui.js
@@ -260,6 +260,7 @@ class GrouplikeListingElement extends ListScrollForm {
         this.loadGrouplike(parent)
         this.curIndex = this.inputs.findIndex(inp => inp.item === oldGrouplike) || this.firstItemIndex
         this.updateSelectedElement()
+        this.scrollSelectedElementIntoView()
       })
       this.addInput(upButton)
     }