bug: click event blocking profile nav
This commit is contained in:
@ -204,13 +204,13 @@ export default function Note(props: NoteProps) {
|
|||||||
eTarget: TaggedRawEvent,
|
eTarget: TaggedRawEvent,
|
||||||
isTargetAllowed: boolean = e.target === e.currentTarget
|
isTargetAllowed: boolean = e.target === e.currentTarget
|
||||||
) {
|
) {
|
||||||
if (props.onClick) {
|
if (!isTargetAllowed || opt?.canClick === false) {
|
||||||
e.stopPropagation();
|
|
||||||
props.onClick(eTarget);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isTargetAllowed || opt?.canClick === false) {
|
if (props.onClick) {
|
||||||
|
e.stopPropagation();
|
||||||
|
props.onClick(eTarget);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user