Skip to content

Commit

Permalink
fix: Show close icon when popup open
Browse files Browse the repository at this point in the history
  • Loading branch information
ktquez committed Jun 21, 2020
1 parent 682b840 commit 1fd25b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/SocialChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@
:title="ariaLabelButton"
@click="togglePopup"
>
<slot name="icon">
<chatIcon v-show="!show" />
<closeIcon v-show="show" />
<slot
v-if="!show || !icon"
name="icon"
>
<chatIcon />
</slot>
<closeIcon v-show="show && icon" />
</button>
</div>
</div>
Expand Down

0 comments on commit 1fd25b4

Please sign in to comment.