From 82b243df1a54eaf4be83faa2ac6fbe2a33ffe4bf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Sep 2020 13:28:28 -0300 Subject: fix jump-to cancel being very broken --- ui.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ui.js b/ui.js index 5a801de..4b45bc9 100644 --- a/ui.js +++ b/ui.js @@ -2059,15 +2059,17 @@ class GrouplikeListingElement extends Form { } hideJumpElement(isCancel) { - if (isCancel) { - this.form.curIndex = this.oldFocusedIndex - this.form.scrollSelectedElementIntoView() - } - this.jumpElement.visible = false - if (this.jumpElement.isSelected) { - this.root.select(this) + if (this.jumpElement.visible) { + if (isCancel) { + this.form.curIndex = this.oldFocusedIndex + this.form.scrollSelectedElementIntoView() + } + this.jumpElement.visible = false + if (this.jumpElement.isSelected) { + this.root.select(this) + } + this.fixLayout() } - this.fixLayout() } unselected() { -- cgit 1.3.0-6-gf8a5