angularjs-dragula icon indicating copy to clipboard operation
angularjs-dragula copied to clipboard

ngRepeat:dupes error, with source or destaination items being replaced with null

Open catamaican opened this issue 9 years ago • 2 comments

Hi, I get very strange errors, like ngRepeat:dupes, with items from the source or destination containters being replaced with null

the template is like this:

<div class="row" style="float:none">
        <div class="tableRow">
            <div class='containerDD' dragula='"optiuni-bag"' dragula-model='CandidatInfo.ListaSpecializariNealeseInfo'>
                <div ng-repeat='item in CandidatInfo.ListaSpecializariNealeseInfo' ng-bind='item.DenumireCompleta'></div>
            </div>
            <div class='containerDD' dragula='"optiuni-bag"' dragula-model='CandidatInfo.ListaSpecializariAleseInfo'>
                <div ng-repeat='item in CandidatInfo.ListaSpecializariAleseInfo' ng-bind='item.DenumireCompleta'></div>
            </div>
        </div>
    </div>
    {{CandidatInfo.ListaSpecializariNealeseInfo}}
    <hr />
    {{CandidatInfo.ListaSpecializariAleseInfo}}

with items source similar to this: [{"IdGrupDS":"cbb277e0-afcc-4c31-a76f-dc0853556ba8","Id":"bf207d10-f35f-4a56-9504-a8853e9a7f85","Denumire":"Cai ferate, drumuri si poduri","TipLoc":null,"PortalId":23,"IdSesiune":"fbf02383-498e-4be5-9daa-bcb2252f1b76","TipLocuri":"B","DenumireCompleta":"Cai ferate, drumuri si poduri (Buget)"},{"IdGrupDS":"eaf670e1-4077-4a46-a21d-6bcbbccf44ab","Id":"0d4cc951-4a43-4d67-be0e-af171aa7c898","Denumire":"Cai ferate, drumuri si poduri","TipLoc":null,"PortalId":23,"IdSesiune":"fbf02383-498e-4be5-9daa-bcb2252f1b76","TipLocuri":"T","DenumireCompleta":"Cai ferate, drumuri si poduri (Taxa)"},{"IdGrupDS":"df6eff47-9433-48e1-94d5-dfb6801e9705","Id":"e7e259f5-2f0f-4006-8bc8-f4e881653dfd","Denumire":"Instalatii pentru constructii","TipLoc":null,"PortalId":23,"IdSesiune":"fbf02383-498e-4be5-9daa-bcb2252f1b76","TipLocuri":"T","DenumireCompleta":"Instalatii pentru constructii (Taxa)"}]

Image: clipboard01

catamaican avatar Jun 29 '16 07:06 catamaican

in the gray table on the left, there are empty rows - those resulted after interacting with the items (drag/drop). In the image I emphasized "null,null,null" that also resulted after the interaction

catamaican avatar Jun 29 '16 08:06 catamaican

I have also noticed glitches and ghost elements in a simple list of 3 elements and complex lists of ~100 elements. After 1/2 minutes of moving the elements around nulls get inserted or elements drop in wrong positions (move 4th to the top, appears below the 10th element, etc.).

ernestoalejo avatar Jul 03 '16 22:07 ernestoalejo