Skip to content

Commit

Permalink
Lazy module list population
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Nov 4, 2021
1 parent abfe098 commit 9590890
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/html-reporter/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ export function escapeText( s ) {
addEvent( commit, "click", applyUrlParams );

dropDownList.id = "qunit-modulefilter-dropdown-list";
dropDownList.innerHTML = moduleListHtml( config.modules );

dropDown.id = "qunit-modulefilter-dropdown";
dropDown.style.display = "none";
Expand All @@ -440,6 +439,10 @@ export function escapeText( s ) {
return;
}

if (moduleSearch.value === "") {
dropDownList.innerHTML = moduleListHtml( config.modules );
}

dropDown.style.display = "block";
addEvent( document, "click", hideHandler );
addEvent( document, "keydown", hideHandler );
Expand Down

0 comments on commit 9590890

Please sign in to comment.