Make keys work as intended when there is no suggestions
このコミットが含まれているのは:
コミット
5478192e20
|
@ -395,7 +395,9 @@ const EmojiInput = {
|
||||||
} else if (this.highlighted < -1) {
|
} else if (this.highlighted < -1) {
|
||||||
this.highlighted = len - 1
|
this.highlighted = len - 1
|
||||||
}
|
}
|
||||||
|
if (len > 0) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cycleForward (e) {
|
cycleForward (e) {
|
||||||
const len = this.suggestions.length || 0
|
const len = this.suggestions.length || 0
|
||||||
|
@ -405,7 +407,9 @@ const EmojiInput = {
|
||||||
this.highlighted = -1
|
this.highlighted = -1
|
||||||
this.input.focus()
|
this.input.focus()
|
||||||
}
|
}
|
||||||
|
if (len > 0) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
scrollIntoView () {
|
scrollIntoView () {
|
||||||
const rootRef = this.$refs.picker.$el
|
const rootRef = this.$refs.picker.$el
|
||||||
|
|
読み込み中…
新しいイシューから参照