Update emoji-input.js

This commit is contained in:
HJ 2019-06-18 17:49:43 +00:00
parent 5f4a8dcc05
commit e5020d6936

View file

@ -168,7 +168,7 @@ const EmojiInput = {
} }
}, },
onTransition (e) { onTransition (e) {
this.resize(e) this.resize()
}, },
onBlur (e) { onBlur (e) {
// Clicking on any suggestion removes focus from autocomplete, // Clicking on any suggestion removes focus from autocomplete,
@ -176,25 +176,25 @@ const EmojiInput = {
setTimeout(() => { setTimeout(() => {
this.focused = false this.focused = false
this.setCaret(e) this.setCaret(e)
this.resize(e) this.resize()
}, 200) }, 200)
}, },
onFocus (e) { onFocus (e) {
this.focused = true this.focused = true
this.setCaret(e) this.setCaret(e)
this.resize(e) this.resize()
}, },
onKeyUp (e) { onKeyUp (e) {
this.setCaret(e) this.setCaret(e)
this.resize(e) this.resize()
}, },
onPaste (e) { onPaste (e) {
this.setCaret(e) this.setCaret(e)
this.resize(e) this.resize()
}, },
onKeyDown (e) { onKeyDown (e) {
this.setCaret(e) this.setCaret(e)
this.resize(e) this.resize()
const { ctrlKey, shiftKey, key } = e const { ctrlKey, shiftKey, key } = e
if (key === 'Tab') { if (key === 'Tab') {