I have a Spark List with a custom MXML itemRenderer which has two states.
One or the other is used based on a data.isTrue property, like so:
override protected function getCurrentRendererState():String
When data.isTrue is true, the TrueState is set which has a small arrow on the right side.
When the dataProvider is changed to a new collection, it renders all the data correctly, except the image which still is visible where isTrue was true for the previous dataset.
On Hover, the arrow goes away.
How can I fix this please?
You might need to add a data setter override that calls invalidateRendererState
Thanks a lot, Alex.
override public function set data(value:Object):void