CollectionView DisconnectHandler SelectionMode=Multiple Windows exception #23649
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
fixed-in-8.0.80
fixed-in-9.0.0-preview.7.24407.4
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
In our apps we have an issue with the DisconnectHandler of the CollectionView. When we call the DisconnectHandler method for the CollectionView when the SelectionMode is set to Multiple the apps throw an exception.
Exception:
{"PlatformView cannot be null here"}
The handler changes the selecteditems while it is being disconnected and this results in a change where the PlatformView is needed.
This issue only occurs on Windows. Android and iOS work as intended.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/siem300/Maui-CollectionViewDisconnectHandlerWindows
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
A possible workaround is setting the selectionmode to none. The problem with this is that our page doesn't know which controls it is disconnecting so we have to type check them.
Relevant log output
The text was updated successfully, but these errors were encountered: