maui icon indicating copy to clipboard operation
maui copied to clipboard

CollectionView with grouping enabled shows duplicate childs after adding/removing a new child record

Open boopathyraj25 opened this issue 1 year ago • 4 comments

Description

Please refer attached screenshots Before adding a record Bug after adding a record

After adding a new child record at the top level group, the child records of all the other groups underneath are automatically manipulated leading to duplicate data under each group.

Steps to Reproduce

  1. Run the code from repo link provided below which will preload parent and child records on the collectionview.
  2. Tap on "Service4" under "Category2", say Yes on delete promt to remove it from collection. The item is programmatically removed but not reflected on the UI.
  3. Now tap on "Service2" under "Category1", say yes in the delete prompt.
  4. Now see the child items under "Category3" are duplicated.

Link to public reproduction project repository

https://github.com/boopathyraj25/MAUI.CollectionViewBugs

Version with bug

8.0.21

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 27 and up

Did you find any workaround?

No

Relevant log output

No response

boopathyraj25 avatar May 01 '24 23:05 boopathyraj25

/similarissues

PureWeen avatar May 02 '24 22:05 PureWeen

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 02 '24 22:05 github-actions[bot]

Can repro this issue at Android platform on the latest 17.10 Preview 6(8.0.21 & 8.0.14).

jaosnz-rep avatar May 06 '24 07:05 jaosnz-rep

@jaosnz-rep Facing same issue for iOS @PureWeen

vplife1 avatar May 07 '24 11:05 vplife1

@boopathyraj25 I reproduced this and found a workaround. You can inherit from ObservableCollection instead of List in ServiceCatUIModel. Maybe this will help you.

BlotskiyDmitriy avatar May 29 '24 09:05 BlotskiyDmitriy

Also, this error is still reproducible on Microsoft.Maui.Controls version 8.0.40

BlotskiyDmitriy avatar May 29 '24 09:05 BlotskiyDmitriy