@wg-npm/survey-core 1.78.511940 → 1.78.511944
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.
- package/dist/survey-core.esm.js +2 -1
- package/package.json +2 -2
- package/src/models.ts +3 -1
package/dist/survey-core.esm.js
CHANGED
|
@@ -160,7 +160,8 @@ class BaseQuestionModel {
|
|
|
160
160
|
else if (question.type == "MATRIX") {
|
|
161
161
|
let total = 0;
|
|
162
162
|
if (question.options.titleScoringEnabled) {
|
|
163
|
-
const
|
|
163
|
+
const scoreMax = _.get(question, "options.scoreMax", null);
|
|
164
|
+
const titleMax = scoreMax != null ? scoreMax : _.get(question, "options.score", 0);
|
|
164
165
|
total += parseFloat(titleMax || 0);
|
|
165
166
|
}
|
|
166
167
|
if (question.options.scoringEnabled) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-core",
|
|
3
|
-
"version": "1.78.
|
|
3
|
+
"version": "1.78.511944",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "cff0ee830e5b7a7789ccc6cc43c51d190c096169",
|
|
51
51
|
"rollup": {
|
|
52
52
|
"external": [
|
|
53
53
|
"lodash"
|
package/src/models.ts
CHANGED
|
@@ -230,7 +230,9 @@ export class BaseQuestionModel {
|
|
|
230
230
|
let total = 0;
|
|
231
231
|
if (question.options.titleScoringEnabled) {
|
|
232
232
|
// @ts-ignore
|
|
233
|
-
const
|
|
233
|
+
const scoreMax = _.get(question, "options.scoreMax", null);
|
|
234
|
+
// @ts-ignore
|
|
235
|
+
const titleMax = scoreMax != null ? scoreMax : _.get(question, "options.score", 0);
|
|
234
236
|
// @ts-ignore
|
|
235
237
|
total += parseFloat(titleMax || 0);
|
|
236
238
|
}
|