aboutsummaryrefslogtreecommitdiff
path: root/src/components/emoji_input
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-10-17 21:23:25 +0300
committerHenry Jameson <me@hjkos.com>2022-10-17 21:23:25 +0300
commit11f9a7ba2719ff4ddb84be39d9e83519c1d0f534 (patch)
treef801f21a08bbb28976963c19f7263810571bbeb4 /src/components/emoji_input
parent4a1ffced44c41be5c4ba60c5b8678b200c328a40 (diff)
update popover styles when caret updates
Diffstat (limited to 'src/components/emoji_input')
-rw-r--r--src/components/emoji_input/emoji_input.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js
index 3d3c58ac..ba5f7552 100644
--- a/src/components/emoji_input/emoji_input.js
+++ b/src/components/emoji_input/emoji_input.js
@@ -278,7 +278,6 @@ const EmojiInput = {
...rest,
img: imageUrl || ''
}))
- this.$refs.suggestorPopover.updateStyles()
}
},
methods: {
@@ -536,6 +535,9 @@ const EmojiInput = {
},
setCaret ({ target: { selectionStart } }) {
this.caret = selectionStart
+ this.$nextTick(() => {
+ this.$refs.suggestorPopover.updateStyles()
+ })
},
resize () {
}