From 20caecd2cb9705308ccd194fcfaeb936ac6e9b5c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 Jul 2020 12:25:10 +0200 Subject: [PATCH] remove item from dropdown list --- src/app/tabs/test-tab.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index efade9dc01..ef3857c993 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -487,6 +487,7 @@ module.exports = class TestTab extends ViewPlugin { updateDirList (e) { if (e.keyCode === 191) { + for (var o of this.uiPathList.querySelectorAll('option')) o.remove() this.testTabLogic.dirList(this._view.el.getElementsByClassName('custom-select')[0].value).then((options) => { options.forEach((path) => this.uiPathList.appendChild(yo``)) })