Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. DataProvider with a number of items (20) in a Spark List with filter & sort functions
2. Rename one of the items
Actual Results:
Crashes
Expected Results:
Works
Workaround (if any):
None
When I rename an element in the list, the ListCollectionView finds the index of the item in the base collection and dispatches the old/new locations to the DataGroup. However, the DataGroup tries to use the base index as an index into the layout, which contains fewer elements, having been filtered. My guess is that the first 2 lines (layout...) were the cause.
mx_internal function DataGroup.itemRemoved(...):void
{
if (layout)
layout.elementRemoved(index)
: