Skip to content

[iOS&Mac] Shell SearchHandler Query not shown in search bar on initial load #35005

Description

@SubhikshaSf4851

Description

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.

Actual Behavior Expected Behavior
Image Image

Link to public reproduction project repository

No response

Version with bug

10.0.0

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. Ahamed-Ali commented on Apr 17, 2026

    @Ahamed-Ali
    Contributor

    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.

  2. added
    s/verifiedVerified / Reproducible Issue ready for Engineering Triage
    s/triagedIssue has been reviewed
    on Apr 17, 2026
  3. added a commit that references this issue on Apr 27, 2026
    36fcf5d
  4. added this to the .NET 10 SR7 milestone on Apr 27, 2026
  5. added 2 commits that reference this issue on Apr 28, 2026
    dd21106
    6fd7a11
  6. added a commit that references this issue on May 6, 2026
    e74dfb9
  7. added a commit that references this issue on May 25, 2026
    35caeef
  8. added a commit that references this issue on Jun 2, 2026
  9. added a commit that references this issue on Jun 15, 2026
    b04d962
  10. added a commit that references this issue on Jun 15, 2026
    9e3f0fa
  11. locked and limited conversation to collaborators on Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions