focus input in emoji picker and react picker

This commit is contained in:
Shpuld Shpuldson 2021-02-25 17:27:29 +02:00
parent 5faca01261
commit 34d18ac0c4
5 changed files with 21 additions and 2 deletions

View file

@ -121,9 +121,12 @@ const Popover = {
}
},
showPopover () {
if (this.hidden) this.$emit('show')
const wasHidden = this.hidden
this.hidden = false
this.$nextTick(this.updateStyles)
this.$nextTick(() => {
if (wasHidden) this.$emit('show')
this.updateStyles()
})
},
hidePopover () {
if (!this.hidden) this.$emit('close')