|
|
@ -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') {
|
|
|
|