aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-04-16 15:27:35 -0400
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 20:28:52 +0000
commit5676b5cfc971edd1ce70763548b03c51963e8301 (patch)
tree172bae13dbcd7c9c1908810e59f267c127c7ca04 /src
parent11672bc4907d41706ad164f1ca3c485f034061c1 (diff)
Fix popover not popping up
Sometimes the "focus-marker" gets clicked. In this situation, it will trigger an open, and then a close, because the original focus-marker was removed from the dom, so $el.contains() no longer thinks the marker is part of the trigger! We replaced the v-if with v-show to resolve this problem.
Diffstat (limited to 'src')
-rw-r--r--src/components/extra_buttons/extra_buttons.vue4
-rw-r--r--src/components/react_button/react_button.vue4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue
index ae50c316..335aabb6 100644
--- a/src/components/extra_buttons/extra_buttons.vue
+++ b/src/components/extra_buttons/extra_buttons.vue
@@ -130,13 +130,13 @@
icon="ellipsis-h"
/>
<FAIcon
- v-if="!expanded"
+ v-show="!expanded"
class="focus-marker"
transform="shrink-6 up-8 right-16"
icon="plus"
/>
<FAIcon
- v-else
+ v-show="expanded"
class="focus-marker"
transform="shrink-6 up-8 right-16"
icon="times"
diff --git a/src/components/react_button/react_button.vue b/src/components/react_button/react_button.vue
index 8fa4d08b..feb95013 100644
--- a/src/components/react_button/react_button.vue
+++ b/src/components/react_button/react_button.vue
@@ -53,13 +53,13 @@
:icon="['far', 'smile-beam']"
/>
<FAIcon
- v-if="!expanded"
+ v-show="!expanded"
class="focus-marker"
transform="shrink-6 up-9 right-17"
icon="plus"
/>
<FAIcon
- v-else
+ v-show="expanded"
class="focus-marker"
transform="shrink-6 up-9 right-17"
icon="times"