Skip to content
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

[Windows] SearchHandler.Focused and Unfocused event never fires #27551

Open
LogishaSelvarajSF4525 opened this issue Feb 4, 2025 · 2 comments · May be fixed by #27577
Open

[Windows] SearchHandler.Focused and Unfocused event never fires #27551

LogishaSelvarajSF4525 opened this issue Feb 4, 2025 · 2 comments · May be fixed by #27577
Labels
area-controls-searchbar SearchBar control partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@LogishaSelvarajSF4525
Copy link
Contributor

LogishaSelvarajSF4525 commented Feb 4, 2025

Description

In a .NET MAUI Shell application running on the Windows platform, the Focused and Unfocused events for Shell.SearchHandler do not trigger when the search handler gains or loses focus.

In android output,

Screen.Recording.2025-02-04.at.3.17.31.PM.mov

In windows output,

Screen.Recording.2025-02-04.150951.mp4

Steps to Reproduce

  1. Run the application on Windows. SearchHandlerIssue.zip

  2. Click inside the search handler to give it focus, then click outside to remove focus.

Expected Behavior

When the SearchHandler gains focus (e.g., the user clicks inside the search box), the Focused event should fire.
The focusedLabel should update to display "Focused: True".
Similarly, when the search handler loses focus, the Unfocused event should fire, updating unfocusedLabel to "Unfocused: True".

Actual Behavior

On Windows, the Focused event does not fire when interacting with the SearchHandler.
As a result, the focusedLabel remains unchanged ("Focused: False").
The Unfocused event behavior is inconsistent; it doesn't trigger as expected.

Link to public reproduction project repository

No response

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 added the t/bug Something isn't working label Feb 4, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 changed the title [Windows] SearchHandler.Focused event never fires [Windows] SearchHandler.Focused and Unfocused event never fires Feb 4, 2025
@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Feb 4, 2025
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Feb 6, 2025
@Marnie-Majait
Copy link

This issue has been verified Visual Studio 17.13 Preview 5.0 (9.0.30 & 9.0.22 & 9.0.0). Can repro this issue on Windows platform.

@jsuarezruiz jsuarezruiz added this to the .NET 9 Servicing milestone Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-searchbar SearchBar control partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants