diff options
author | Florrie <towerofnix@gmail.com> | 2019-04-08 10:47:23 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-04-08 10:47:23 -0300 |
commit | e4ba8ea5bc16ffd0a324ac50492277c9926329c6 (patch) | |
tree | 61aa81ec2df1b53651100ec3919eed97faf3bcc5 | |
parent | 66ab26062db7fb15251cdd903ab282d408af1d7f (diff) |
Fix listing index not being updated correctly
Actually it wasn't being updated at all. We need to pass an element to selectInput, not an index!
-rw-r--r-- | ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js index 1ada92e..72079ae 100644 --- a/ui.js +++ b/ui.js @@ -1159,7 +1159,7 @@ class GrouplikeListingElement extends Form { if (wasSelected) { if (resetIndex) { form.scrollItems = 0 - form.selectInput(form.firstItemIndex) + form.selectInput(form.inputs[form.firstItemIndex]) } else { this.root.select(form) } |