diff options
Diffstat (limited to 'ui/form/ListScrollForm.js')
-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 |