Skip to content
Snippets Groups Projects
Unverified Commit 5478192e authored by tusooa's avatar tusooa :zap:
Browse files

Make keys work as intended when there is no suggestions

parent 24659397
No related branches found
No related tags found
2 merge requests!1861Update master branch,!1771Autocomplete accessibility
...@@ -395,7 +395,9 @@ const EmojiInput = { ...@@ -395,7 +395,9 @@ const EmojiInput = {
} else if (this.highlighted < -1) { } else if (this.highlighted < -1) {
this.highlighted = len - 1 this.highlighted = len - 1
} }
e.preventDefault() if (len > 0) {
e.preventDefault()
}
}, },
cycleForward (e) { cycleForward (e) {
const len = this.suggestions.length || 0 const len = this.suggestions.length || 0
...@@ -405,7 +407,9 @@ const EmojiInput = { ...@@ -405,7 +407,9 @@ const EmojiInput = {
this.highlighted = -1 this.highlighted = -1
this.input.focus() this.input.focus()
} }
e.preventDefault() if (len > 0) {
e.preventDefault()
}
}, },
scrollIntoView () { scrollIntoView () {
const rootRef = this.$refs.picker.$el const rootRef = this.$refs.picker.$el
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment