dotnet / dotnet/maui

CollectionView's `SelectionChanged` isn't fired on iOS when it's inside a grid with TapGestureRecognizer

Open
#33,401 3 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview platform/ios s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

I have a grid with a `TapGestureRecognizer`, inside this grid I have a border, and inside the border I have a collection view with single selection and a selection changed event. When an item, it doesn't fire the `SelectionChanged` event on iOS, only the gesture recognizer event, but works fine on Android. I've attached a repro project for iOS

### Steps to Reproduce

Open sample project, debug it and try clicking the CollectionView items on iOS. It should fire the `SelectionChanged` event, but it doesn't

### Link to public reproduction project repository

https://github.com/romerotg/CollectionViewGestureRecognizerIssueIOS

### Version with bug

10.0.20

### Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

### Last version that worked well

9.0.82 SR8.2

### Affected platforms

iOS

### Affected platform versions

iOS 26.0

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by running the linked CollectionViewGestureRecognizerIssueIOS reproduction project on iOS and compare the CollectionView SelectionChanged behavior with Android. Trace the interaction between the Grid's TapGestureRecognizer, Border, and single-selection CollectionView; done means clicking an item fires SelectionChanged on iOS as described, while preserving the working Android behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.