Browse Source

fix: stop event propagation when click "Temporarily display this reply" button

imwald
codytseng 9 months ago
parent
commit
cb32439896
  1. 5
      src/components/ReplyNote/index.tsx

5
src/components/ReplyNote/index.tsx

@ -77,7 +77,10 @@ export default function ReplyNote({ @@ -77,7 +77,10 @@ export default function ReplyNote({
<Button
variant="outline"
className="text-muted-foreground font-medium mt-2"
onClick={() => setShowMuted(true)}
onClick={(e) => {
e.stopPropagation()
setShowMuted(true)
}}
>
{t('Temporarily display this reply')}
</Button>

Loading…
Cancel
Save