Skip to content

Commit

Permalink
feat(mon-pix): scroll to flashcards when self-assesment
Browse files Browse the repository at this point in the history
  • Loading branch information
dianeCdrPix authored Nov 19, 2024
1 parent 8e87548 commit b0e1a6c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export default class ModulixFlashcards extends Component {
this.args.onSelfAssessment(selfAssessmentData);
this.incrementCounterFor(userAssessment);
this.goToNextCard();

const elementToFocus = document.querySelector('.element-flashcards');
elementToFocus.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'start' });
}

<template>
Expand Down

0 comments on commit b0e1a6c

Please sign in to comment.