We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e769a commit 74d7244Copy full SHA for 74d7244
src/webviews/apps/shared/components/search/search-box.ts
@@ -159,7 +159,7 @@ export class GlSearchBox extends GlElement {
159
resultsLoaded = false;
160
161
get hasResults() {
162
- return this.total > 1;
+ return this.total >= 1;
163
}
164
165
@query('gl-search-input')
@@ -227,6 +227,9 @@ export class GlSearchBox extends GlElement {
227
228
229
private get resultsHtml() {
230
+ if (!this.value) {
231
+ return html`<span class="count"></span>`;
232
+ }
233
if (this.searching) {
234
return html`<gl-tooltip hoist placement="top" class="count"
235
><code-icon icon="loading" modifier="spin"></code-icon><span slot="content">Searching...</span>
0 commit comments