bug: click event blocking profile nav

This commit is contained in:
Kieran 2023-04-18 14:16:08 +01:00
parent 82d2b19e36
commit 28383b8464
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 4 additions and 4 deletions

View File

@ -204,13 +204,13 @@ export default function Note(props: NoteProps) {
eTarget: TaggedRawEvent,
isTargetAllowed: boolean = e.target === e.currentTarget
) {
if (props.onClick) {
e.stopPropagation();
props.onClick(eTarget);
if (!isTargetAllowed || opt?.canClick === false) {
return;
}
if (!isTargetAllowed || opt?.canClick === false) {
if (props.onClick) {
e.stopPropagation();
props.onClick(eTarget);
return;
}