Skip to content

Commit

Permalink
Fix re-record playing audio at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Jun 24, 2024
1 parent 49b1cbb commit c691714
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion common/components/AudioField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ export default function AudioField({ audioClip, onPlayAudio, onRerecord }: Props
audioActionElement = (
<Tooltip title={t('ankiDialog.rerecord')!}>
<span>
<IconButton disabled={audioClip?.error !== undefined} onClick={onRerecord} edge="end">
<IconButton
disabled={audioClip?.error !== undefined}
onClick={(e) => {
e.stopPropagation();
onRerecord();
}}
edge="end"
>
<FiberManualRecordIcon />
</IconButton>
</span>
Expand Down

0 comments on commit c691714

Please sign in to comment.