mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 00:44:34 +08:00
Always show results container to ensure it gets config'd
This commit is contained in:
@ -93,13 +93,11 @@ export default class Search extends Component {
|
|||||||
? <button className="Search-clear Button Button--icon Button--link" onclick={this.clear.bind(this)}>{icon('times-circle')}</button>
|
? <button className="Search-clear Button Button--icon Button--link" onclick={this.clear.bind(this)}>{icon('times-circle')}</button>
|
||||||
: ''}
|
: ''}
|
||||||
</div>
|
</div>
|
||||||
{this.value() && this.hasFocus
|
|
||||||
? (
|
|
||||||
<ul className="Dropdown-menu Search-results">
|
<ul className="Dropdown-menu Search-results">
|
||||||
{this.sources.map(source => source.view(this.value()))}
|
{this.value() && this.hasFocus
|
||||||
</ul>
|
? this.sources.map(source => source.view(this.value()))
|
||||||
)
|
|
||||||
: ''}
|
: ''}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user