StatusMedia: stop propagation from element root
This commit is contained in:
parent
b892b85f70
commit
54801e44af
1 changed files with 10 additions and 1 deletions
|
@ -173,7 +173,16 @@ const StatusMedia: React.FC<IStatusMedia> = ({
|
|||
);
|
||||
}
|
||||
|
||||
return media;
|
||||
if (media) {
|
||||
return (
|
||||
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
||||
<div onClick={e => e.stopPropagation()}>
|
||||
{media}
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
export default StatusMedia;
|
||||
|
|
Loading…
Reference in a new issue