Commit e2994853 authored by lianahus's avatar lianahus Committed by Liana Husikyan

update on data list selection

parent 3d72f842
......@@ -73,6 +73,7 @@ module.exports = class TestTab extends ViewPlugin {
this.on('filePanel', 'setWorkspace', async () => {
this.testTabLogic.setCurrentPath(this.defaultPath)
this.inputPath.value = this.defaultPath
this.updateDirList(this.defaultPath)
await this.updateForNewCurrent()
})
......@@ -608,7 +609,7 @@ module.exports = class TestTab extends ViewPlugin {
let testDirInput = this.trimTestDirInput(this.inputPath.value)
testDirInput = removeMultipleSlashes(testDirInput)
if (testDirInput !== '/') testDirInput = removeTrailingSlashes(testDirInput)
if (e.key === 'Enter') {
if (e.key === 'Enter' || e.type === 'keyup ') {
this.inputPath.value = testDirInput
if (await this.testTabLogic.pathExists(testDirInput)) {
this.testTabLogic.setCurrentPath(testDirInput)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment