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.
This commit is contained in:
Tusooa Zhu 2022-04-16 15:27:35 -04:00 committed by HJ
parent 11672bc490
commit 5676b5cfc9
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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"