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

@ -23,6 +23,12 @@ const ReactButton = {
this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji })
}
close()
},
focusInput () {
this.$nextTick(() => {
const input = this.$el.querySelector('input')
if (input) input.focus()
})
}
},
computed: {

View file

@ -6,6 +6,7 @@
:offset="{ y: 5 }"
:bound-to="{ x: 'container' }"
remove-padding
@show="focusInput"
>
<div
slot="content"