Skip to content

Commit

Permalink
fix no results message when loading results using spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
dougchestnut committed Sep 6, 2023
1 parent c721cd8 commit f630564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/bento-box/src/MLBSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {unsafeHTML} from 'lit/directives/unsafe-html.js';
import { MLBib, GeneralSearchMeta, MLBData, GeneralSearchResult } from '@uvalib/data-wrap';
import { property } from 'lit/decorators.js';
import { BentoSection } from './BentoSection.js';
import '@uvalib/site-spinner/site-spinner.js';

export class MLBSection extends BentoSection {

Expand Down Expand Up @@ -121,7 +122,9 @@ export class MLBSection extends BentoSection {
</div>
<div class="bs-results--body">
<p id="no-results" ?hidden="${!this.isEmptySearch}">${this.noResultDescribe}</p>
${this.loading ? html`<site-spinner></site-spinner>` : html`
<p id="no-results" ?hidden="${!this.isEmptySearch || this.loading}">${this.noResultDescribe}</p>
`}
${this.embedded ? html`
<ul ?hidden="${this.isEmptySearch}" class="bs-results--list">
Expand Down

0 comments on commit f630564

Please sign in to comment.