remove item from dropdown list

uiCheck
yann300 4 years ago
parent 8eafbd82b9
commit 20caecd2cb
  1. 1
      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`<option>${path}</option>`))
})

Loading…
Cancel
Save