Skip to content

[Shell] Dynamically setting SearchHandler Query property does not update text in the search box #14497

@kklose23

Description

@kklose23

Description

Dynamically setting the SearchHandler Query property does not update text in the search box. The search box needs to be re-rendered for the text to show up appropriately.

Steps to Reproduce

  1. Follow these steps https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/shell/search?view=net-maui-7.0
  2. Dynamically set the Query property on a page where the search handler search box is visible
  3. The search box text will not change

Link to public reproduction project repository

N/A

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

iOS 16.2, Android 13

Did you find any workaround?

After setting the Query property, do the following:
SearchBoxVisibility = SearchBoxVisibility.Hidden;
SearchBoxVisibility = SearchBoxVisibility.Expanded;

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions