-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Revert "Add Accessibility Selected for iOS CollectionView (#29014)" #29827
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reverts the changes made in "Add Accessibility Selected for iOS CollectionView (#29014)" by removing tests and host app components related to the feature as well as reverting modifications to accessibility handling in iOS handlers and extension methods.
- Removed automated tests from TestCases.Shared.Tests and host app pages related to Issue21375 and Issue21375_2.
- Removed calls to UpdateSelectedAccessibility from iOS controller files and reverted the associated accessibility extension methods.
- Deleted associated XAML files and backing code from the host app.
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21375_2.cs | Removed tests for Issue21375_2. |
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21375.cs | Removed tests for Issue21375. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue21375_2.xaml.cs | Removed host app code for Issue21375_2. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue21375_2.xaml | Removed XAML for Issue21375_2. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue21375.xaml.cs | Removed host app code for Issue21375. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue21375.xaml | Removed XAML for Issue21375. |
| src/Controls/src/Core/Platform/iOS/Extensions/AcessibilityExtensions.cs | Reverted accessibility changes; notice the renaming change. |
| src/Controls/src/Core/Handlers/Items2/iOS/SelectableItemsViewController2.cs | Removed calls to UpdateSelectedAccessibility to revert behavior. |
| src/Controls/src/Core/Handlers/Items/iOS/SelectableItemsViewController.cs | Removed calls to UpdateSelectedAccessibility to revert behavior. |
Comments suppressed due to low confidence (1)
src/Controls/src/Core/Platform/iOS/Extensions/AcessibilityExtensions.cs:5
- The class name 'AcessibilityExtensions' seems to contain a typo. Consider renaming it to 'AccessibilityExtensions' to ensure consistency with naming conventions.
internal static class AcessibilityExtensions
|
/azp run |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
|
just fyi - i've linked this revert here |
|
Hi @PureWeen , |
This reverts commit 8a8cef3.
|
/backport to release/9.0.1xx-sr7 |
|
Started backporting to release/9.0.1xx-sr7: https://github.com/dotnet/maui/actions/runs/15492650967 |
Description of Change
From what I can tell so far what's happening is that the selecteditem change here
maui/src/Controls/src/Core/Handlers/Items/iOS/SelectableItemsViewController.cs
Lines 64 to 81 in b095e3d
Fires on the AutoCompleteControl which then causes the AutoCompleteControl to close and invalidate the NSIndexPath, which then causes a crash on that subsequent line that's setting a value for accessibility.
I haven't added a test yet replicating the exception because I can't currently reproduce it in the same way. I've confirmed that this will fix the issue for the customer so I'm going to revert this for SR7 and SR8 for now and we will look at adding a more correct fix and set of tests for SR9
Issues Fixed
Fixes #29791