bug: click event blocking profile nav
This commit is contained in:
parent
82d2b19e36
commit
28383b8464
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user