ui-sortable icon indicating copy to clipboard operation
ui-sortable copied to clipboard

After dropping a dragged item a delay occurs as the data does the sorting

Open mtpultz opened this issue 9 years ago • 4 comments

A dataset of 300 records in a table using ui-sortable has a 3-4 second delay after the item being dragged is dropped that appears to be related to sorting the newly ordered data that prevents any actions from occurring until complete, which includes any further dragging and even scrolling the page.

mtpultz avatar Feb 10 '17 02:02 mtpultz

Hi there. It might be the ng-repeat that's re-rendering that causes the issue. Are you using the track by statement in your ng-repeat and are you taking a unique property?

thgreasi avatar Feb 10 '17 08:02 thgreasi

Hi @thgreasi, yah I'm using track by and a unique database ID. This is a snippet of the markup.

<tbody ui-sortable="vm.sortableOptions"
       ng-model="vm.agencies">

    <tr ng-repeat="agency in vm.agencies track by agency.id">

        <td data-title="'Sort Order'"
               data-label="Sort Order"
               title="Sort Order">

            {{ agency.sortorder }}

        </td>

mtpultz avatar Feb 10 '17 09:02 mtpultz

I'm experiencing a similar situation, has there been any resolution for this yet?

c0r3yz avatar Mar 02 '17 21:03 c0r3yz

I created an example pen to demonstrate this, but I'm not usre how we can handle it.

thgreasi avatar Mar 07 '17 10:03 thgreasi