fix avatar stopPropagation

This commit is contained in:
fly_mc 2024-10-20 22:45:53 +08:00
parent 731df076f0
commit 8e35800168
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div>
<p v-if="note.cw != null" :class="$style.cw">
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :isBlock="true" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis" @click.stop/>
<MkCwButton v-model="showContent" :text="note.text" :files="note.files" :poll="note.poll" @click.stop/>
<MkCwButton v-model="showContent" :text="note.text" :files="note.files" :poll="note.poll" @click.stop="!note.poll" />
</p>
<div v-show="note.cw == null || showContent" @click.stop>
<MkSubNoteContent :class="$style.text" :note="note"/>

View file

@ -89,7 +89,6 @@ const url = computed(() => {
function onClick(ev: MouseEvent): void {
if (props.link) return;
ev.stopPropagation();
emit('click', ev);
}