CollectionView SelectedItem loses Background after opening and closing a Modal page #22467
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Changing
CollectionView
SelectedItem
BackgroundColor
usingVisualStateManager
does not seem to be working properly on iOS. If an item is in the Selected state and we change the background color, open a modal page, then close that modal page, the SelectedItem no longer has the background color that was previously set.Steps to Reproduce
Link to public reproduction project repository
https://github.com/jgon34/maui-bug
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.2
Did you find any workaround?
Use async messaging bus to send message back to underlying page to re-select the item when the modal is dismissed.
Relevant log output
No response
Example gif:
The text was updated successfully, but these errors were encountered: