Maui: [BUG] Expander is not working in ios inside collectionview

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the “Reporting a bug” section on Contributing file?

Current Behavior

The expander control in iOS is not functioning as expected when placed inside a collection view. Specifically, only the first item of the collection view is affected when you click on any other item. This issue started occurring after upgrading the toolkit from 5.2.0 to 7.0.1 and .NET from 7.0 to 8.0.

Expected Behavior

When expander is placed inside collectionview, the item which is tapped or clicked must expand or collapsed. In android, it is working fine but has issue on iOS.

Steps To Reproduce

Create a collection view add expanded control inside it Run the application in ios

image

Link to public reproduction project repository

https://github.com/dotnet/maui/issues/20004

Environment

- .NET MAUI CommunityToolkit: 7.0.1
- OS: iOS 14.2.1 (23C71)
- .NET MAUI:.net 8

Anything else?

na

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 20 (7 by maintainers)

Most upvoted comments

It may be a “community toolkit”, but microsoft direct people to it for functionality. Maui is being pushed as ‘make your projects in it’, but it relies on people giving up their free time. This just seems utterly astonishing and is of course aimed at microsoft management. Do we bin Maui and start again in something else or spend thousands on other companies sdk’s (which aren’t exactly bug free) ? As for a PR, this is in a PR, its a 6 months open bug which I found whilst trying to address non functionality in the ios version. It would be better if it was removed rather than be broken.

We’ll see if new CollectionView handler fixes the issue.

Ipad:

https://github.com/user-attachments/assets/fb5391f6-35d9-48d7-9913-f78553ec7c18

IOS:

https://github.com/user-attachments/assets/263e2c0d-1125-4d1c-95a3-5bf810a94d40

This issue appears to be resolved. Expander is working now in a collection view. I see no unexpected behavior.

Edited: Added sample for IOS and titled the IPad version.