MOBILE-2462 question: Fix ngClass error if class is undefined

main
Dani Palou 2018-07-04 11:14:14 +02:00
parent 16c1538506
commit 1d4d6107ba
1 changed files with 2 additions and 0 deletions

View File

@ -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 = '';
} }
} }