dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Double Trigger of CollectionView SelectionChanged Event on MacCatalyst Platform #25826

Open anandhan-rajagopal opened 1 week ago

anandhan-rajagopal commented 1 week ago

Description

The SelectionChanged event in CollectionView triggers twice for a single selection action on the MacCatalyst platform in .NET MAUI, unlike other platforms where it fires only once per selection change. This issue, identified through the Issue8203 UI test in HostApp https://github.com/user-attachments/assets/2c25cc7a-40a6-439c-be7a-1bd756c9ebcb

Steps to Reproduce

  1. Run the attached sample
  2. Select the items on the collections
  3. The SelectionChanged event have been raised twice which displayed in the label. SimpleApp.zip

Link to public reproduction project repository

No response

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output