angular-virtual-scroll icon indicating copy to clipboard operation
angular-virtual-scroll copied to clipboard

Problem deleting from list

Open kpgarrod opened this issue 10 years ago • 1 comments

I am trying our this directive with anglarFire. It all works well (thanks!), except when I remove an item from the list. I get these messages in the console:

change by 0,1 rows forward
need to remove from the top
need to remove from the bottom 

but the item is still shown.

Any suggestions please?

kpgarrod avatar Jun 02 '14 12:06 kpgarrod

In case anybody else has this problem,

I replaced lines 432-462 of angular-virtual-scroll.js with this(lines 436-437):

destroyActiveElements('pop', rendered.length);
rendered = addElements(newValue.start, newEnd, collection, scope, iterStartElement);

I can see that it will affect performance, but at least it works for my use case.

kpgarrod avatar Jun 03 '14 13:06 kpgarrod