mirror of
https://github.com/flarum/framework.git
synced 2025-04-27 23:24:03 +08:00
fix: dropdown show results search button hidden while loading results (#3431)
This commit is contained in:
parent
89b194034b
commit
a79e2c20fe
@ -130,7 +130,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
|
|||||||
const searchLabel = extractText(app.translator.trans('core.forum.header.search_placeholder'));
|
const searchLabel = extractText(app.translator.trans('core.forum.header.search_placeholder'));
|
||||||
|
|
||||||
const isActive = !!currentSearch;
|
const isActive = !!currentSearch;
|
||||||
const shouldShowResults = !!(!this.loadingSources && this.searchState.getValue() && this.hasFocus);
|
const shouldShowResults = !!(this.searchState.getValue() && this.hasFocus);
|
||||||
const shouldShowClearButton = !!(!this.loadingSources && this.searchState.getValue());
|
const shouldShowClearButton = !!(!this.loadingSources && this.searchState.getValue());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user