fix click propagation on PlayButton

This commit is contained in:
jeffvli 2025-07-07 23:20:05 -07:00
parent 0b7d4bfb6a
commit a5f28e49eb

View file

@ -61,7 +61,7 @@ interface PlayButtonProps extends Omit<ActionIconProps, 'icon' | 'variant'> {
} }
export const PlayButton = forwardRef<HTMLButtonElement, PlayButtonProps>( export const PlayButton = forwardRef<HTMLButtonElement, PlayButtonProps>(
({ isPaused, ...props }: PlayButtonProps, ref) => { ({ isPaused, onClick, ...props }: PlayButtonProps, ref) => {
return ( return (
<ActionIcon <ActionIcon
className={styles.main} className={styles.main}
@ -69,6 +69,10 @@ export const PlayButton = forwardRef<HTMLButtonElement, PlayButtonProps>(
iconProps={{ iconProps={{
size: 'lg', size: 'lg',
}} }}
onClick={(e) => {
e.stopPropagation();
onClick?.(e);
}}
ref={ref} ref={ref}
tooltip={{ tooltip={{
label: isPaused label: isPaused