diff options
-rw-r--r-- | ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js index 4ad09e9..13774cd 100644 --- a/ui.js +++ b/ui.js @@ -666,7 +666,7 @@ class GrouplikeListingForm extends ListScrollForm { } get firstItemIndex() { - return Math.min(this.inputs.length, 1) + return Math.max(0, this.inputs.findIndex(el => el instanceof GrouplikeItemElement)) } selectAndShow(item) { |