logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 5676b5cfc971edd1ce70763548b03c51963e8301
parent 11672bc4907d41706ad164f1ca3c485f034061c1
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Sat, 16 Apr 2022 15:27:35 -0400

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:

Msrc/components/extra_buttons/extra_buttons.vue4++--
Msrc/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 @@ -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 @@ -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"