diff --git a/app/javascript/mastodon/components/autosuggest_textarea.js b/app/javascript/mastodon/components/autosuggest_textarea.js index 82a10687f..35b37600f 100644 --- a/app/javascript/mastodon/components/autosuggest_textarea.js +++ b/app/javascript/mastodon/components/autosuggest_textarea.js @@ -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 {
{suggestions.map((suggestion, i) => (