From ca2fd3c8a24f8267ba6b8dda82e132e08edbd570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 28 Sep 2017 08:56:32 +0200 Subject: [PATCH] Revert "autoscroll emoji suggestions box" This reverts commit 640740eeac34aaefc81580b9c974683b00c15e1a. --- .../mastodon/components/autosuggest_textarea.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/javascript/mastodon/components/autosuggest_textarea.js b/app/javascript/mastodon/components/autosuggest_textarea.js index 82a10687f5..35b37600fe 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) => (