Skip to content

Commit

Permalink
Move user selection assignment to synchronous environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbsteinberg committed Jan 16, 2020
1 parent 2995c72 commit 7301496
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/amp-story/1.0/amp-story-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,10 @@ export class AmpStoryQuiz extends AMP.BaseElement {
}

this.triggerAnalytics_(optionEl);
this.hasUserSelection_ = true;

this.mutateElement(() => {
this.updateQuizToPostSelectionState_(optionEl);

this.hasUserSelection_ = true;
});

if (this.element.hasAttribute('endpoint')) {
Expand Down

0 comments on commit 7301496

Please sign in to comment.