aboutsummaryrefslogtreecommitdiff
path: root/src/components/react_button/react_button.vue
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/components/react_button/react_button.vue
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/components/react_button/react_button.vue')
-rw-r--r--src/components/react_button/react_button.vue4
1 files changed, 2 insertions, 2 deletions
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"