From bbd1c3ce5f7a163b9c5fc21069daa120f773902e Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 31 Jan 2019 13:29:01 -0400 Subject: Don't delete the scrollbars --- ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui.js b/ui.js index 0ae5266..441db03 100644 --- a/ui.js +++ b/ui.js @@ -1013,8 +1013,8 @@ class GrouplikeListingElement extends Form { // Just outright scrap the old items - don't deal with any selection stuff // (as a result of removeInput) yet. + form.children = form.children.filter(child => !form.inputs.includes(child)); form.inputs = [] - form.children = [] const parent = this.grouplike[parentSymbol] if (parent) { @@ -2119,8 +2119,9 @@ class ContextMenu extends FocusElement { // select() loops that probably explode the world... speaking of things // to forget, that one time when I was figuring out menus in the queue. // This makes them work.) + this.form.children = this.form.children.filter( + child => !this.form.inputs.includes(child)); this.form.inputs = [] - this.form.children = [] } fixLayout() { -- cgit 1.3.0-6-gf8a5