focus input in emoji picker and react picker
This commit is contained in:
parent
5faca01261
commit
34d18ac0c4
5 changed files with 21 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue