Fix: Mention should not propagate click events

This commit is contained in:
Donatas Kirda 2024-05-15 18:08:23 +03:00
parent 96715b1512
commit 7ece3268fc
Signed by: bloodwiing
GPG Key ID: 63020D8D3F4A164F

View File

@ -45,7 +45,7 @@
</style> </style>
{#if user} {#if user}
<a class="mention" href="/users/{getNamedId(user.id, user.name)}"> <a class="mention" href="/users/{getNamedId(user.id, user.name)}" on:click={(e) => {e.stopPropagation();}}>
<slot /> <slot />
<div class="mentionBlock"> <div class="mentionBlock">
<span class="at">@</span> <span class="at">@</span>