Spark List does not use Sort on initial display
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Spark List doesn't actually apply the specified Sort until something like a dataProvider.refresh() happens.
mx:ListCollectionView.initialized() calls refresh(), which applies the sort, for example.
Is the MXML compiler not calling initialized() on components?
Attached test case utilizes Spark bead CollectionChangeUpdateForArrayListData (from pull req #972) for the Refresh button to work.
[TestSparkListSort.mxml.txt](https://github.com/apache/royale-asjs/files/5635829/TestSparkListSort.mxml.txt)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the attached TestSparkList.mxml.txt case and compare Spark List behavior with mx:ListCollectionView.initialized(), which calls refresh() to apply sorting. Review the CollectionChangeUpdateForArrayListData bead from pull request #972 and reproduce the initial display issue. Done means the specified sort is applied on first display without requiring dataProvider.refresh().
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100