angular-virtual-scroll
angular-virtual-scroll copied to clipboard
Problem deleting from list
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?
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.