Revert "autoscroll emoji suggestions box"
This reverts commit 640740eeac
.
This commit is contained in:
parent
3398d0e84c
commit
ca2fd3c8a2
1 changed files with 0 additions and 10 deletions
|
@ -151,15 +151,6 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
componentDidUpdate () {
|
||||
if (this.refs.selected) {
|
||||
if (this.refs.selected.scrollIntoViewIfNeeded)
|
||||
this.refs.selected.scrollIntoViewIfNeeded();
|
||||
else
|
||||
this.refs.selected.scrollIntoView({ behavior: 'auto', block: 'nearest' });
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus } = this.props;
|
||||
const { suggestionsHidden, selectedSuggestion } = this.state;
|
||||
|
@ -192,7 +183,6 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|||
<div className={`autosuggest-textarea__suggestions ${suggestionsHidden || suggestions.isEmpty() ? '' : 'autosuggest-textarea__suggestions--visible'}`}>
|
||||
{suggestions.map((suggestion, i) => (
|
||||
<div
|
||||
ref={i === selectedSuggestion ? 'selected' : null}
|
||||
role='button'
|
||||
tabIndex='0'
|
||||
key={suggestion}
|
||||
|
|
Loading…
Reference in a new issue