Hello,
After 'ng build --configuration=production' this piece code:
JavaScriptQuestionMatrixDropdownModelBase.prototype.hasErrorInRows = function (fireCallback, rec) {
var _this = this;
if (!this.generatedVisibleRows) {
var rows = this.visibleRows;
}
var res = false;
if (!rec)
rec = {};
rec.isSingleDetailPanel = this.detailPanelMode === "underRowSingle";
for (var i = 0; i < this.generatedVisibleRows.length; i++) {
res =
this.generatedVisibleRows[i].hasErrors(fireCallback, rec, function () {
_this.raiseOnCompletedAsyncValidators();
}) || res;
}
return res;
}
Before build:
with be compiled to this:
JavaScriptt.prototype.hasErrorInRows = function (e, t) {
var n = this, i = !1;
t || (t = {}), t.isSingleDetailPanel = "underRowSingle" === this.detailPanelMode;
for (var o = 0; o < this.generatedVisibleRows.length; o++)i = this.generatedVisibleRows[o].hasErrors(e, t, function () { n.raiseOnCompletedAsyncValidators() }) || i; return i
}
After build:
as you can see this part
JavaScriptif (!this.generatedVisibleRows) {
var rows = this.visibleRows;
}
was removed and it causes a js error and the survey is not displayed :
I have to mention that the problem reproduced when we use the matrix components.
I appreciate your help.