-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed Shell Navigating event issue when switching tabs #25749
base: main
Are you sure you want to change the base?
Conversation
Hey there @Vignesh-SF3580! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
Show resolved
Hide resolved
/azp run |
/rebase |
f21d409
to
5d88a5f
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -0,0 +1,27 @@ | |||
#if ANDROID // Facing a full exception when clicking on the already selected tab(App.Tap()) in Windows, iOS, and macOS, so excluded those platforms. |
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.
Could you share the exception? Want to determinate if is related with a possible bug on Android or if we need to review something at testing stuff.
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.
I have revalidated the test cases once more with the latest source and I can confirm that it is now possible to click on the already selected tab using the tab title on Windows and AutomationId on iOS and Mac.
I have modified the test cases to run successfully in all platforms. Could you please review and let me know if you have any concerns?
/rebase |
b135e92
to
280f462
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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.
- Can you split these changes into two PRs?
- I think the implementation on iOS isn't addressing the issue. The problem the user is reporting is that the navigating event isn't firing when they reclick on the Tab. Ideally we don't disable this behavior but we instead route it through the Shell.Navigating features so that users can enable/disable this behavior
Current Behavior:
Behavior After the Fix:
Example Scenario:
|
Issue Detail
Clicking on an already-selected tab triggered the Navigating event unnecessarily.
Root Cause
The event was triggered without checking if the tab was already selected.
Description of Change
Modified the code to trigger Navigating only if a new tab is selected.
Tested the behaviour in the following platforms
Issues Fixed
Fixes #25599
Screenshots
BeforeFix.mov
AfterFix.mov