@pocketprep/ui-kit 3.4.70 → 3.4.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -424,6 +424,17 @@ export default class MobileMatrixChoicesContainer extends Vue {
424
424
 
425
425
  convertSelectedMatrixChoiceToRadioBtnGrid () {
426
426
  const radioBtnGrid = this.defaultRadioButtonGrid
427
+
428
+ const columnMatrixLabels = this.question.matrixLabels?.rows
429
+ const defaultSelectedColumnLabels: string[][] = []
430
+ if (columnMatrixLabels) {
431
+ columnMatrixLabels.forEach(() => {
432
+ defaultSelectedColumnLabels.push([])
433
+ })
434
+
435
+ this.selectedColumnHeaders = defaultSelectedColumnLabels
436
+ }
437
+
427
438
  this.selectedMatrixChoices.forEach(choice => {
428
439
  const rowIndex = Number(choice.substring(1, choice.indexOf('_'))) - 1
429
440
  const columnIndex = Number(choice.split('_').pop()) - 1
@@ -163,7 +163,8 @@ export default class Summary extends Vue {
163
163
  @Prop({ default: [] }) keywordDefinitions!: { keyword: string; definition: string }[]
164
164
 
165
165
  get isQuestionCorrect () {
166
- return (!this.isMatrixQuestion && this.isCorrect) || (this.isMatrixQuestion && this.isMatrixQuestionCorrect)
166
+ return (!this.isMatrixQuestion && this.isCorrect) ||
167
+ (this.isMatrixQuestion && this.isMatrixQuestionCorrect && !this.isUnanswered)
167
168
  }
168
169
 
169
170
  get summary () {
@@ -831,7 +831,7 @@ export default class Question extends Vue {
831
831
  if (!this.isMatrixQuestion) {
832
832
  return this.selectedChoices.length === 0
833
833
  }
834
- return this.selectedMatrixChoices.length === 0
834
+ return (this.selectedMatrixChoices.length === 0 || !this.allMatrixRowsAreAnswered)
835
835
  }
836
836
 
837
837
  get prompt () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.70",
3
+ "version": "3.4.71",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {