diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index f3b6dfe9b..f6ba6e245 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -205,12 +205,6 @@ const EmojiInput = { return emoji.displayText } }, - onInputScroll () { - this.$refs.hiddenOverlay.scrollTo({ - top: this.input.scrollTop, - left: this.input.scrollLeft - }) - }, suggestionListId () { return `suggestions-${this.randomSeed}` }, @@ -239,7 +233,6 @@ const EmojiInput = { this.overlayStyle.fontSize = style.fontSize this.overlayStyle.wordWrap = style.wordWrap this.overlayStyle.whiteSpace = style.whiteSpace - this.resize() input.addEventListener('blur', this.onBlur) input.addEventListener('focus', this.onFocus) input.addEventListener('paste', this.onPaste) @@ -302,6 +295,13 @@ const EmojiInput = { } }, methods: { + onInputScroll (e) { + this.$refs.hiddenOverlay.scrollTo({ + top: this.input.scrollTop, + left: this.input.scrollLeft + }) + this.setCaret(e) + }, triggerShowPicker () { this.$nextTick(() => { this.$refs.picker.showPicker() @@ -561,8 +561,6 @@ const EmojiInput = { this.$refs.suggestorPopover.updateStyles() }) }, - resize () { - }, autoCompleteItemLabel (suggestion) { if (suggestion.user) { return suggestion.displayText + ' ' + suggestion.detailText diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue index 4335a678e..f25349b24 100644 --- a/src/components/settings_modal/tabs/profile_tab.vue +++ b/src/components/settings_modal/tabs/profile_tab.vue @@ -1,7 +1,6 @@ -

{{ $t('settings.bio') }}

- -