marceljuenemann / angular-drag-and-drop-lists

Angular directives for sorting nested lists using the HTML5 Drag & Drop API
MIT License
2.16k stars 713 forks source link

Angular throws a digest 10 cycles error while rendering 5+ nested containers #486

Closed r0ss0neri closed 5 years ago

r0ss0neri commented 5 years ago

Issue can be reproducible with 1.4.7 and 1.7.1 versions of AngularJS.

Quick case to use provided from demo example with nested lists: http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/nested

Just use this tree as original to render:

{
  "A": [
    {
      "type": "container",
      "id": 1,
      "columns": [
        [
          {
            "type": "container",
            "id": 2,
            "columns": [
              [
                {
                  "type": "container",
                  "id": 3,
                  "columns": [
                    [
                      {
                        "type": "container",
                        "id": 4,
                        "columns": [
                          [
                            {
                              "type": "container",
                              "id": 5,
                              "columns": []
                            }
                          ]
                        ]
                      }
                    ]
                  ]
                }
              ]
            ]
          }
        ]
      ]
    }
  ]
}
r0ss0neri commented 5 years ago

I have discovered that this issue is related to the angularjs framework, and not to the angular-drag-and-drop-lists library. So this once can be closed.

Original problem - https://github.com/angular/angular.js/issues/15815