Skip to content

Maui Grouped CollectionView incorrect item highlighted #22320

@BarkerPep

Description

@BarkerPep

Description

When using the grouping functionality of a CollectionView it can be observed that the selected item highlighting jumps to the top item in a grouping.

Screenshot 2024-05-09 at 11 32 36 AM

Verified issue on:

  • macOS
  • iOS-Simulator iPhone 15 Pro
  • iOS-Physical iPhone 14 Pro

Does not occur on:

  • Windows

Not tested:

  • Android

Steps to Reproduce

  1. Run application on macOS or iOS
  2. Verify you are on the view "Collection"
  3. Select any item that is not the first item in a grouping. Example: GroupId: 1, ItemId: 5
  4. Observe the selected item highlighting

Expected: The tapped item is highlighted

Actual: The tapped item flashes, but then the first item in the group is highlighted.

Link to public reproduction project repository

https://github.com/BarkerPep/MauiGroupedCollectionViewRepro

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

Use ListView instead of CollectionView

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions