Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectionChangedCommand does not invoke in CollectionView twice when SelectionMode is Single on Windows #15677

Closed
HobDev opened this issue Jun 15, 2023 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@HobDev
Copy link

HobDev commented Jun 15, 2023

Description

On Windows when SelectionMode is Single the Selected item can't be unselected by assigning null value to the Selected Item in the ViewModel.

Steps to Reproduce

Run the reproduction project on windows. Select an item from the list of items in CollectionView. The Selected Item is set to null in the ViewModel. But still the SelectionChangedCommand does not invoke on re-selecting it.

Link to public reproduction project repository

https://github.com/HobDev/MauiBugs/tree/CollectionViewSelectionIssue

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.19041.0

Did you find any workaround?

May be using SelectionMode=Multiple serve the purpose in some scenarios.

Relevant log output

No response

@HobDev HobDev added the t/bug Something isn't working label Jun 15, 2023
@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jun 15, 2023
@jaosnz-rep jaosnz-rep added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jan 26, 2024
@jaosnz-rep
Copy link

Verified this issue with Visual Studio Enterprise 17.9.0 Preview 4. Can repro on Windows platforms with sample project.
https://github.com/HobDev/MauiBugs/tree/CollectionViewSelectionIssue

@jsuarezruiz jsuarezruiz added the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 6, 2024
Copy link
Contributor

Hi @HobDev. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 13, 2024
@dotnet-policy-service dotnet-policy-service bot removed this from the Backlog milestone Jun 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants