diff --git a/frontend/app/components/task-player/single-simple-words/component.ts b/frontend/app/components/task-player/single-simple-words/component.ts index 7f5da2900..aba9195cb 100644 --- a/frontend/app/components/task-player/single-simple-words/component.ts +++ b/frontend/app/components/task-player/single-simple-words/component.ts @@ -12,6 +12,13 @@ import AnswerOption from 'brn/utils/answer-option'; import SingleSimpleWordTask from 'brn/models/task/single-simple-words'; export default class SingleSimpleWordsComponent extends Component { @tracked currentAnswer: string[] = []; + willDestroy(): void { + super.willDestroy(); + if (this.audio.isPlaying) { + this.audio.stop(); + } + document.body.dataset.correctAnswer = ''; + } get audioFileUrl() { const task = this.firstUncompletedTask; if (!task) { @@ -21,6 +28,7 @@ export default class SingleSimpleWordsComponent extends Component