always focus search when opening emoji picker
This commit is contained in:
parent
11f9a7ba27
commit
c1be65332f
@ -240,12 +240,14 @@ const EmojiPicker = {
|
|||||||
},
|
},
|
||||||
onShowing () {
|
onShowing () {
|
||||||
const oldContentLoaded = this.contentLoaded
|
const oldContentLoaded = this.contentLoaded
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.search.focus()
|
||||||
|
})
|
||||||
this.contentLoaded = true
|
this.contentLoaded = true
|
||||||
this.waitForDomAndInitializeLazyLoad()
|
this.waitForDomAndInitializeLazyLoad()
|
||||||
this.filteredEmojiGroups = this.getFilteredEmojiGroups()
|
this.filteredEmojiGroups = this.getFilteredEmojiGroups()
|
||||||
if (!oldContentLoaded) {
|
if (!oldContentLoaded) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.search.focus()
|
|
||||||
if (this.defaultGroup) {
|
if (this.defaultGroup) {
|
||||||
this.highlight(this.defaultGroup)
|
this.highlight(this.defaultGroup)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user