mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
fix click propagation on PlayButton
This commit is contained in:
parent
0b7d4bfb6a
commit
a5f28e49eb
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue