Skip to content

Conversation

Dhivya-SF4094
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details:

When using Shell.SearchHandler on iOS, the title bar disappears when a search is initiated but doesn't reappear after the search is completed by tapping the search button on the keyboard.

Root Cause

When a search is completed by tapping the "Search" button on the keyboard, the SearchButtonClicked event handler was correctly calling QueryConfirmed() but wasn't explicitly setting _searchController.Active = false. This left the search controller in an active state.
Even though the search action completed functionally (the search query was processed), visually the UI remained in "search mode" with the title bar hidden because the search controller was still considered active by iOS.

Description of Change

Added code to set _searchController.Active = false in the SearchButtonClicked method before invoking QueryConfirmed():
This change ensures that the UISearchController is properly deactivated when the search is completed via keyboard, which restores the title bar to its normal state.

Validated the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Issues Fixed:

Fixes #14448

Screenshots

Before After
14448_BeforeFix_iOS.mov
14448_AfterFix_iOS.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 8, 2025
Copy link
Contributor

Hey there @@Dhivya-SF4094! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Oct 8, 2025
@jsuarezruiz jsuarezruiz added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Oct 9, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The .net maui title bar disappears and does not re-appear on iOS when using shell.searchhandler

2 participants