diff --git a/src/addon/qtype/calculated/component/addon-qtype-calculated.html b/src/addon/qtype/calculated/component/addon-qtype-calculated.html
index 4f100766f..db25e4f4b 100644
--- a/src/addon/qtype/calculated/component/addon-qtype-calculated.html
+++ b/src/addon/qtype/calculated/component/addon-qtype-calculated.html
@@ -18,7 +18,7 @@
-
+
@@ -40,7 +40,7 @@
-
+
{{option.label}}
@@ -56,7 +56,7 @@
{{option.text}}
-
+
diff --git a/src/addon/qtype/shortanswer/component/addon-qtype-shortanswer.html b/src/addon/qtype/shortanswer/component/addon-qtype-shortanswer.html
index bbf7f47bf..550e65863 100644
--- a/src/addon/qtype/shortanswer/component/addon-qtype-shortanswer.html
+++ b/src/addon/qtype/shortanswer/component/addon-qtype-shortanswer.html
@@ -2,6 +2,6 @@
-
+
diff --git a/src/core/question/classes/base-question-component.ts b/src/core/question/classes/base-question-component.ts
index 8b79eb23b..49642e774 100644
--- a/src/core/question/classes/base-question-component.ts
+++ b/src/core/question/classes/base-question-component.ts
@@ -291,10 +291,12 @@ export class CoreQuestionBaseComponent {
};
// Check if question is marked as correct.
- if (input.className.indexOf('incorrect') >= 0) {
- this.question.input.isCorrect = 0;
- } else if (input.className.indexOf('correct') >= 0) {
- this.question.input.isCorrect = 1;
+ if (input.classList.contains('incorrect')) {
+ this.question.input.correctClass = 'core-question-incorrect';
+ } else if (input.classList.contains('correct')) {
+ this.question.input.correctClass = 'core-question-correct';
+ } else if (input.classList.contains('partiallycorrect')) {
+ this.question.input.correctClass = 'core-question-partiallycorrect';
}
}