|
|
@ -80,7 +80,7 @@ class Search extends PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
handleKeyDown = (e) => {
|
|
|
|
handleKeyDown = (e) => {
|
|
|
|
const { selectedOption } = this.state;
|
|
|
|
const { selectedOption } = this.state;
|
|
|
|
const options = this._getOptions().concat(this.defaultOptions);
|
|
|
|
const options = searchEnabled ? this._getOptions().concat(this.defaultOptions) : this._getOptions();
|
|
|
|
|
|
|
|
|
|
|
|
switch(e.key) {
|
|
|
|
switch(e.key) {
|
|
|
|
case 'Escape':
|
|
|
|
case 'Escape':
|
|
|
@ -353,6 +353,8 @@ class Search extends PureComponent {
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{searchEnabled && (
|
|
|
|
|
|
|
|
<>
|
|
|
|
<h4><FormattedMessage id='search_popout.options' defaultMessage='Search options' /></h4>
|
|
|
|
<h4><FormattedMessage id='search_popout.options' defaultMessage='Search options' /></h4>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='search__popout__menu'>
|
|
|
|
<div className='search__popout__menu'>
|
|
|
@ -362,6 +364,8 @@ class Search extends PureComponent {
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|