diff options
author | Florrie <towerofnix@gmail.com> | 2019-07-18 23:28:29 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-07-18 23:28:29 -0300 |
commit | 27c7e362d1f6719af0d2c47b815b23d648d699a6 (patch) | |
tree | 73dcf10f079eb253711d3111650160d8e5f280a9 /ui | |
parent | 7bf0f9016cd195be20e76fbed8637b3b00a46725 (diff) |
Don't explode when no element is selected!
Diffstat (limited to 'ui')
-rw-r--r-- | ui/form/ListScrollForm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js index 64214ab..38fd2a2 100644 --- a/ui/form/ListScrollForm.js +++ b/ui/form/ListScrollForm.js @@ -148,6 +148,10 @@ module.exports = class ListScrollForm extends Form { scrollSelectedElementIntoView() { const sel = this.inputs[this.curIndex] + if (!sel) { + return + } + let formEdge if (this.layoutType === 'horizontal') { formEdge = this.contentW |