Remove unnecessary stopPropagation() calls
This commit is contained in:
parent
f66b50361d
commit
990e28ccc8
|
@ -449,7 +449,6 @@ const Audio: React.FC<IAudio> = (props) => {
|
|||
onMouseLeave={handleMouseLeave}
|
||||
tabIndex={0}
|
||||
onKeyDown={handleKeyDown}
|
||||
onClick={e => e.stopPropagation()}
|
||||
>
|
||||
<audio
|
||||
src={src}
|
||||
|
|
|
@ -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}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue