focus input in emoji picker and react picker

This commit is contained in:
Shpuld Shpuldson 2021-02-25 17:27:29 +02:00
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: {