We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21cbf8a commit 2a46194Copy full SHA for 2a46194
src/webviews/apps/shared/components/search/search-box.ts
@@ -153,7 +153,7 @@ export class GlSearchBox extends GlElement {
153
resultsLoaded = false;
154
155
get hasResults() {
156
- return this.total > 1;
+ return this.total >= 1;
157
}
158
159
@query('gl-search-input')
@@ -221,6 +221,9 @@ export class GlSearchBox extends GlElement {
221
222
223
private get resultsHtml() {
224
+ if (!this.value) {
225
+ return html`<span class="count"></span>`;
226
+ }
227
if (this.searching) {
228
return html`<gl-tooltip hoist placement="top" class="count"
229
><code-icon icon="loading" modifier="spin"></code-icon><span slot="content">Searching...</span>
0 commit comments