mirror of
https://github.com/go-vikunja/vikunja.git
synced 2025-12-05 18:57:47 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user