Skip to content

Commit

Permalink
Fix QUnit dropdown bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jun 2, 2023
1 parent cfcbae1 commit 9292a27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/qunit/qunit.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@
color: #0D3349;
background-color: #F5F5F5;
z-index: 99;

max-height: 80vh;
overflow: auto;
}

#qunit-modulefilter-actions {
Expand Down
4 changes: 2 additions & 2 deletions tests/qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5509,15 +5509,15 @@
// module names, indicating how the interface works. This also makes
// for a quicker interaction in the common case of small projects.
// Don't mandate typing just to get the menu.
results = dropdownData.options.slice(0, 20).map(function (obj) {
results = dropdownData.options.map(function (obj) {
// Fake empty results. https://github.com/farzher/fuzzysort/issues/41
return {
obj: obj
};
});
} else {
results = fuzzysort.go(searchText, dropdownData.options, {
limit: 20,
limit: 1000,
key: 'name',
allowTypo: true
});
Expand Down

0 comments on commit 9292a27

Please sign in to comment.