Skip to content

Commit

Permalink
Fixes an issue where the testgroup was allowing the handler to contin…
Browse files Browse the repository at this point in the history
…ue when the user performs an 'onClickOutside'
  • Loading branch information
vakenbolt committed Jun 11, 2020
1 parent 968eacf commit e870fb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_report.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ window.GoTestReport = function (elements) {
data,
selectedItems,
testGroupListHandler) {

if (target.classList.contains('testResultGroup') === false) {
return
}
if (selectedItems.testResults != null) {
let testResultsElement = /**@type {HTMLElement}*/ selectedItems.testResults
testResultsElement.style.backgroundColor = selectedItems.selectedTestGroupColor
Expand Down

0 comments on commit e870fb6

Please sign in to comment.