Remove unnecessary stopPropagation() calls

This commit is contained in:
Alex Gleason 2022-11-19 15:55:55 -06:00
parent f66b50361d
commit 990e28ccc8
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 0 additions and 4 deletions

View File

@ -449,7 +449,6 @@ const Audio: React.FC<IAudio> = (props) => {
onMouseLeave={handleMouseLeave}
tabIndex={0}
onKeyDown={handleKeyDown}
onClick={e => e.stopPropagation()}
>
<audio
src={src}

View File

@ -183,8 +183,6 @@ const Video: React.FC<IVideo> = ({
}
}, [video.current]);
const handleClickRoot: React.MouseEventHandler = e => e.stopPropagation();
const handlePlay = () => {
setPaused(false);
};
@ -507,7 +505,6 @@ const Video: React.FC<IVideo> = ({
ref={player}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
onClick={handleClickRoot}
onKeyDown={handleKeyDown}
tabIndex={0}
>