You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[iOS&Mac] Shell SearchHandler Query not shown in search bar on initial load #35005
When the Query property is set during the initial load, the value is not reflected or updated in the UI on iOS and Mac Catalyst platforms. However, this behavior works as expected on Android and Windows.
Steps to Reproduce
// In your ContentPage constructor or OnAppearing
var searchHandler = new SearchHandler
{
Placeholder = "Search items...",
Query = "Initial query",
};
Shell.SetSearchHandler(this, searchHandler);
Attach the above sample on MainPage.Xaml.cs
Run on iOS or MacCatalyst.
Expected Behavior : The search bar displays "Initial query" on first load. Actual Behavior : The search bar holds placeholder text.
Activity
Ahamed-Ali commentedon Apr 17, 2026
This issue has been validated in Visual Studio 1.116.0 with MAUI versions (10.0.0, 10.0.20 and 10.0.51). It was reproducible on iOS and Mac Platform.
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (#35008)
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (#35008)
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (#35008)
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (#35008)
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (#35008)
May 4th, Candidate (#35234)
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (dotne…
[iOS&Mac] Fix Shell SearchHandler Query update on Initial load (dotne…