ember-collection icon indicating copy to clipboard operation
ember-collection copied to clipboard

Prevent duplication of cells while filtering

Open Griff0ly0n opened this issue 6 years ago • 0 comments

Certain elements in an 'ember-collection' based list is rendered more than once, when filtering is performed on the list. I noticed this issue when i tried to use 'ember-collection' inside 'ember-power-select'. Below images depict this issue,

List showing duplicates

snip20180331_6 Duplicates in DOM

snip20180331_7

I traced down the root cause of this issue being related to presence of 'cellMap', which seems to be a lookup to check if the cell is already being rendered or not. Avoiding this lookup when inserting new items, resolve the issue.

Griff0ly0n avatar Mar 31 '18 17:03 Griff0ly0n