Do not focus channel when close button clicked

This fixes leaving channels and removing networks jumping to it before being removed
This commit is contained in:
Pavel Djundik 2019-11-11 15:31:24 +02:00
parent 2044bc88dd
commit 3a6b075745
2 changed files with 3 additions and 3 deletions

View file

@ -13,12 +13,12 @@
<span class="parted-channel-icon" /> <span class="parted-channel-icon" />
</span> </span>
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Leave"> <span class="close-tooltip tooltipped tooltipped-w" aria-label="Leave">
<button class="close" aria-label="Leave" @click="close" /> <button class="close" aria-label="Leave" @click.stop="close" />
</span> </span>
</template> </template>
<template v-else> <template v-else>
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Close"> <span class="close-tooltip tooltipped tooltipped-w" aria-label="Close">
<button class="close" aria-label="Close" @click="close" /> <button class="close" aria-label="Close" @click.stop="close" />
</span> </span>
</template> </template>
</ChannelWrapper> </ChannelWrapper>

View file

@ -42,7 +42,7 @@
@click.stop="$emit('toggleJoinChannel')" @click.stop="$emit('toggleJoinChannel')"
/> />
</span> </span>
<button class="close" hidden @click="close" /> <button class="close" hidden @click.stop="close" />
</ChannelWrapper> </ChannelWrapper>
</template> </template>