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