Stackoverflow error on internet Explorer with memberpicker
Hi,
I got an error only on IE (10) in a custom admin in umbraco. I am using the native dialog memberpicker.
It's working well on chrome but on IE I got those errors:
Out of stack space jquery.min.js (this one appear sometimes only)
Stack overflow at line: 5
I have just use the member picker from umbraco.
The member picker itself is on a right panel using dialogservice.
Here is my controller
function CustomMemberController($rootScope, $scope, dialogService, iconHelper, angularHelper) {
$scope.renderModel = [];
var dialogOptions = {
multiPicker: false,
entityType: "Member",
section: "member",
treeAlias: "member",
filter: function (i) {
return i.metaData.isContainer == true;
},
filterCssClass: "not-allowed",
callback: function (data) {
if (angular.isArray(data)) {
_.each(data, function (item, i) {
$scope.add(item);
});
} else {
$scope.clear();
$scope.add(data);
$rootScope.recipientId = data.id;
}
angularHelper.getCurrentForm($scope).$setDirty();
}
};
$scope.openMemberPicker = function () {
dialogService.memberPicker(dialogOptions);
}
$scope.remove = function (index) {
$scope.renderModel.splice(index, 1);
};
$scope.add = function (item) {
var currIds = _.map($scope.renderModel, function (i) {
return i.id;
});
if (currIds.indexOf(item.id) < 0) {
item.icon = iconHelper.convertFromLegacyIcon(item.icon);
$scope.renderModel.push({ name: item.name, id: item.id, icon: item.icon });
}
};
$scope.clear = function () {
$scope.renderModel = [];
};}
Stackoverflow error on internet Explorer with memberpicker
Hi,
I got an error only on IE (10) in a custom admin in umbraco. I am using the native dialog memberpicker. It's working well on chrome but on IE I got those errors: Out of stack space jquery.min.js (this one appear sometimes only) Stack overflow at line: 5
I have just use the member picker from umbraco. The member picker itself is on a right panel using dialogservice.
Here is my controller
Hello MrFlo, I run into a similar problem.
I call a dialogservice.open() in another dialog, it works fine in chrome, edge and firefox, but in IE10/11 it throws a Stack overflow.
Did you find a solution for your problem yet?
is working on a reply...