-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Shell] Dynamically setting SearchHandler Query property does not update text in the search box #14497
Comments
Hi @kklose23. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
While you did add the "follow the steps from this doc" we still would like a repro. It might be that you forgot a step in following that doc or we are missing something in our docs that does not make it work. In either case, if you provide a simple reproduction sample that should make that clear really fast. Thanks! |
@jfversluis Just wrote up a repro here: https://github.com/kklose23/shell-search-query-issue Clicking the Get Monkeys button should also change the text within the search handler. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Verified this on Visual Studio Enterprise 17.7.0 Preview 2.0. This issue repro on Android 13.0-API33 and iOS 16.4, not repro on Windows 11 with below Project: |
Note: There is no workaround for iOS, only Android |
Bug is still present on Android 14 using MAUI 8.0.92. |
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
Query
property on a page where the search handler search box is visibleLink 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
The text was updated successfully, but these errors were encountered: