Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MrFlo 159 posts 403 karma points
    Nov 26, 2015 @ 16:00
    MrFlo
    0

    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 = [];
    };}
    
  • Theresa Danowski 16 posts 78 karma points
    Dec 15, 2016 @ 14:45
    Theresa Danowski
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft