FIX: wait for the end of search requests (#26240)

Prior to this fix, if you were following this series of events:
- type something in a select-kit filter with async search
- query starts
- type something again
- first query finished with no results
- second query starts
- 💥 we would show a no content found for a split second
- second query finishes
- we display a list of results
This commit is contained in:
Joffrey JAFFEUX 2024-03-19 12:25:25 +01:00 committed by GitHub
parent 83e73722a7
commit 98eb014bdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
{{/each}} {{/each}}
{{#if this.selectKit.filter}} {{#if this.selectKit.filter}}
{{#if this.selectKit.hasNoContent}} {{#if (and this.selectKit.hasNoContent (not this.selectKit.isLoading))}}
<span class="no-content" role="alert"> <span class="no-content" role="alert">
{{i18n "select_kit.no_content"}} {{i18n "select_kit.no_content"}}
</span> </span>

View File

@ -28,7 +28,7 @@
{{/each}} {{/each}}
{{#if this.selectKit.filter}} {{#if this.selectKit.filter}}
{{#if this.selectKit.hasNoContent}} {{#if (and this.selectKit.hasNoContent (not this.selectKit.isLoading))}}
<span class="no-content" role="alert"> <span class="no-content" role="alert">
{{i18n "select_kit.no_content"}} {{i18n "select_kit.no_content"}}
</span> </span>