diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index ffe9fa482..7b0a3d114 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -333,6 +333,13 @@ SearchResults.prototype = { let terms = this._searchSystem.getTerms(); this._openSearchSystem.setSearchTerms(terms); + // To avoid CSS transitions causing flickering + // of the selection when the first search result + // stays the same, we hide the content while + // filling in the results and setting the initial + // selection. + this._content.hide(); + for (let i = 0; i < results.length; i++) { let [provider, providerResults] = results[i]; let meta = this._metaForProvider(provider); @@ -343,6 +350,8 @@ SearchResults.prototype = { if (this._selectedOpenSearchButton == -1) this.selectDown(false); + this._content.show(); + return true; },