MOBILE-2462 question: Fix ngClass error if class is undefined
parent
16c1538506
commit
1d4d6107ba
|
@ -297,6 +297,8 @@ export class CoreQuestionBaseComponent {
|
||||||
this.question.input.correctClass = 'core-question-correct';
|
this.question.input.correctClass = 'core-question-correct';
|
||||||
} else if (input.classList.contains('partiallycorrect')) {
|
} else if (input.classList.contains('partiallycorrect')) {
|
||||||
this.question.input.correctClass = 'core-question-partiallycorrect';
|
this.question.input.correctClass = 'core-question-partiallycorrect';
|
||||||
|
} else {
|
||||||
|
this.question.input.correctClass = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue