aboutsummaryrefslogtreecommitdiff
path: root/src/components/react_button/react_button.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-02-26 11:13:33 +0000
committerShpuld Shpludson <shp@cock.li>2021-02-26 11:13:33 +0000
commit59db4582b0617f354520886f23047083ec681d54 (patch)
tree1164ac7922d68cd5902b4a9bc3baa0f4afc15f80 /src/components/react_button/react_button.js
parent20b755d57e790d614036df2ca9ed18207ada02be (diff)
parentacc08932cdc704fd875fbd66180c08c13c243c5e (diff)
Merge branch 'feat/focus-input-with-emoji-pickers' into 'develop'
close #1048: Focus input in emoji picker and react picker Closes #1048 See merge request pleroma/pleroma-fe!1357
Diffstat (limited to 'src/components/react_button/react_button.js')
-rw-r--r--src/components/react_button/react_button.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js
index 5e7b7580..ce82c90d 100644
--- a/src/components/react_button/react_button.js
+++ b/src/components/react_button/react_button.js
@@ -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: {