mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
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:
parent
83e73722a7
commit
98eb014bdb
@ -42,7 +42,7 @@
|
||||
{{/each}}
|
||||
|
||||
{{#if this.selectKit.filter}}
|
||||
{{#if this.selectKit.hasNoContent}}
|
||||
{{#if (and this.selectKit.hasNoContent (not this.selectKit.isLoading))}}
|
||||
<span class="no-content" role="alert">
|
||||
{{i18n "select_kit.no_content"}}
|
||||
</span>
|
||||
|
@ -28,7 +28,7 @@
|
||||
{{/each}}
|
||||
|
||||
{{#if this.selectKit.filter}}
|
||||
{{#if this.selectKit.hasNoContent}}
|
||||
{{#if (and this.selectKit.hasNoContent (not this.selectKit.isLoading))}}
|
||||
<span class="no-content" role="alert">
|
||||
{{i18n "select_kit.no_content"}}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user