diff options
| author | Henry Jameson <me@hjkos.com> | 2022-10-10 00:37:59 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-10-10 00:37:59 +0300 |
| commit | d2fabe1a71207f92e10283fc5a881d883cb52ae1 (patch) | |
| tree | e420a449ec9a3bc0797a4865be4d0abfdc3d2348 /src/components/emoji_input | |
| parent | 8fa1f0b50dcf51e976330163b819dfaf82d30a53 (diff) | |
use anchor for picker
Diffstat (limited to 'src/components/emoji_input')
| -rw-r--r-- | src/components/emoji_input/emoji_input.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index 6532654f..eb64e054 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -141,6 +141,7 @@ const EmojiInput = { return this.focused && this.suggestions && this.suggestions.length > 0 && + !this.pickerShown && !this.temporarilyHideSuggestions }, textAtCaret () { @@ -205,6 +206,7 @@ const EmojiInput = { this.input = input this.caretEl = hiddenOverlayCaret suggestorPopover.setAnchorEl(this.caretEl) + this.$refs.picker.setAnchorEl(this.caretEl) const style = getComputedStyle(this.input) this.overlayStyle.padding = style.padding this.overlayStyle.border = style.border |
