fix(reaction): use the actual button element to compute rect, not the vue component
Resolves https://github.com/go-vikunja/vikunja/issues/1913
This commit is contained in:
parent
5fc9b74f50
commit
dbb4046d51
|
|
@ -113,7 +113,7 @@ const emojiPickerPosition = ref()
|
|||
|
||||
function toggleEmojiPicker() {
|
||||
if (!showEmojiPicker.value) {
|
||||
const rect = emojiPickerButtonRef.value?.getBoundingClientRect()
|
||||
const rect = emojiPickerButtonRef.value?.$el?.getBoundingClientRect()
|
||||
const container = reactionContainerRef.value?.getBoundingClientRect()
|
||||
if (rect && container) {
|
||||
const left = rect.left - container.left + rect.width
|
||||
|
|
|
|||
Loading…
Reference in New Issue