Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectionView SelectedItem loses Background after opening and closing a Modal page #22467

Open
jgon34 opened this issue May 16, 2024 · 2 comments
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

Comments

@jgon34
Copy link

jgon34 commented May 16, 2024

Description

Changing CollectionView SelectedItem BackgroundColor using VisualStateManager 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

  1. Run linked github project
  2. Select an item in the list
  3. Click "Click Me" button to open a modal page
  4. Click "click me" button on the modal page to close it
  5. SelectedItem on MainPage loses background color

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:
visualstatemanager_bug

@jgon34 jgon34 added the t/bug Something isn't working label May 16, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 17, 2024
@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio 17.10 Preview 7.0(8.0.40&8.0.21&8.0.20&8.0.14&8.0.3). Can repro on iOS platform with sample project.

@PureWeen PureWeen added area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 labels May 17, 2024
@PureWeen PureWeen added this to the Backlog milestone May 17, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants