From 1d4d6107ba23de584aaadfc397bbe3822394694f Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 4 Jul 2018 11:14:14 +0200 Subject: [PATCH] MOBILE-2462 question: Fix ngClass error if class is undefined --- src/core/question/classes/base-question-component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/question/classes/base-question-component.ts b/src/core/question/classes/base-question-component.ts index 49642e774..f0ab76a35 100644 --- a/src/core/question/classes/base-question-component.ts +++ b/src/core/question/classes/base-question-component.ts @@ -297,6 +297,8 @@ export class CoreQuestionBaseComponent { this.question.input.correctClass = 'core-question-correct'; } else if (input.classList.contains('partiallycorrect')) { this.question.input.correctClass = 'core-question-partiallycorrect'; + } else { + this.question.input.correctClass = ''; } }