Always show results container to ensure it gets config'd

This commit is contained in:
Toby Zerner
2015-07-27 12:32:30 +09:30
parent 00de9ee9a4
commit b2badde77f

View File

@ -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>
: ''}
</div>
{this.value() && this.hasFocus
? (
<ul className="Dropdown-menu Search-results">
{this.sources.map(source => source.view(this.value()))}
</ul>
)
: ''}
<ul className="Dropdown-menu Search-results">
{this.value() && this.hasFocus
? this.sources.map(source => source.view(this.value()))
: ''}
</ul>
</div>
);
}