Skip to content

Commit 1605c54

Browse files
committed
Select first test by default.
1 parent 4ffe187 commit 1605c54

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/src/views/Text.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,12 @@ export default class Text extends EventDispatcher {
381381
}
382382

383383
_reselectTest() {
384-
if (!this._selTest) { return; }
385-
this.testList.selected = this._selTest.id;
384+
if (this._selTest) {
385+
this.testList.selected = this._selTest.id;
386+
}
387+
if (!this._selTest || this.testList.selected == null) {
388+
this.testList.selectedIndex = 0;
389+
}
386390
this._selTest = null;
387391
this._handleTestChange();
388392
}

0 commit comments

Comments
 (0)