-
Notifications
You must be signed in to change notification settings - Fork 460
Description
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
CollectionViews within toolkit:popup windows do not fire the SelectionChanged event unless the item has been held for 3 seconds. This issue is only on iOS, not Android, and was introduced with the 12.2.0 Update. Rolling back one fixed the problem.
Expected Behavior
Immediate click recongition on CollectionView items within a toolkit:popup window as in previous versions.
Steps To Reproduce
- Open and run solution from repository.
- Click to open popup.
- Clicking any popup item should immediately close the popup (within the SelectionChanged event)
- It will on android, but you must hold 3 seconds on iOS to fire SelectionChanged
Link to public reproduction project repository
https://github.com/mccoym98/ToolkitCollectionViewBugRepro.git
Environment
- .NET MAUI CommunityToolkit: 12.2.0
- OS: iOS 14, 15 & 16
- .NET MAUI: current
Anything else?
MAUI Community Toolkit Update 12.2.0 introduced a bug into my application only when run on iOS. I use CollectionViews inside of toolkit:popups. These CollectionViews are composed of borders and other similar elements within the DataTemplate. Those all now require a solid 3-second press in order to be activated as measured by the SelectionChanged event from the CollectionView. From what I have tested, CollectionViews not being used on a popup page are unaffected. I have rolled back NuGet updates one-by-one and pinned the issue to this toolkit on the 12.2.0 version. Buttons on the popup work fine as expected. Android works fine as well. This is an iOS only issue.