maui icon indicating copy to clipboard operation
maui copied to clipboard

[iOS] Fixed OnNavigatedTo not triggered for tabs in More section of TabbedPage

Open Vignesh-SF3580 opened this issue 6 months ago • 9 comments

Issue Detail

OnNavigatedTo not called when navigate to the tabs in more tab in iOS.

Root cause

On iOS, when a tab is selected from the "More" section of a TabbedPage, the navigation event OnNavigatedTo is not triggered. This is because the CurrentPage property is not updated when selecting tabs from the "More" section, resulting in missing navigation lifecycle events for those tabs.

Description of change

Updated the CurrentPage using delegate when accessing tabs in More section resolves the issue.

Issues Fixed

Fixes https://github.com/dotnet/maui/issues/16175

Screenshots

Before Issue Fix After Issue Fix

Vignesh-SF3580 avatar May 14 '25 13:05 Vignesh-SF3580

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 MAUI-UITests-public

jsuarezruiz avatar May 19 '25 06:05 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar May 19 '25 06:05 azure-pipelines[bot]

/azp run MAUI-UITests-public

jsuarezruiz avatar May 26 '25 07:05 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar May 26 '25 07:05 azure-pipelines[bot]

Seems to keep failing: TabbedPageTabEventsTriggeredInMoreSection

The app was expected to be running still, investigate as possible crash
TearDown : The app was expected to be running still, investigate as possible crash

Could you review it?

@jsuarezruiz I have verified the test TabbedPageTabEventsTriggeredInMoreSection locally, and it passed without any issues. Could you please re-run the CI to confirm the results? image

Vignesh-SF3580 avatar May 29 '25 10:05 Vignesh-SF3580

Seems to keep failing: TabbedPageTabEventsTriggeredInMoreSection

The app was expected to be running still, investigate as possible crash
TearDown : The app was expected to be running still, investigate as possible crash

Could you review it?

@jsuarezruiz I have verified the test TabbedPageTabEventsTriggeredInMoreSection locally, and it passed without any issues. Could you please re-run the CI to confirm the results? image

Yes, running it again.

jsuarezruiz avatar May 30 '25 09:05 jsuarezruiz

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 09 '25 06:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 09 '25 06:06 azure-pipelines[bot]