forked from AkkomaGang/akkoma-fe
Update emoji-input.js
This commit is contained in:
parent
5f4a8dcc05
commit
e5020d6936
1 changed files with 6 additions and 6 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Reference in a new issue