Merge pull request #1689 from velveret/autocomplete-autofocus
Allow autoFocus on Autocomplete componentold
commit
f75fd26207
|
@ -134,7 +134,7 @@ const factory = (Chip, Input) => {
|
|||
};
|
||||
|
||||
handleQueryFocus = (event) => {
|
||||
this.suggestionsNode.scrollTop = 0;
|
||||
event.target.scrollTop = 0;
|
||||
this.setState({ active: '', focus: true });
|
||||
if (this.props.onFocus) this.props.onFocus(event);
|
||||
};
|
||||
|
@ -381,7 +381,6 @@ const factory = (Chip, Input) => {
|
|||
return (
|
||||
<ul
|
||||
className={classnames(theme.suggestions, { [theme.up]: this.state.direction === 'up' })}
|
||||
ref={(node) => { this.suggestionsNode = node; }}
|
||||
>
|
||||
{suggestions}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue