Entry UnFocused Event not trigger after change value

Bhuwan 616 Reputation points
2024-04-15T06:10:45.9+00:00

After changing the value of an entry, the 'Entry Unfocused' event does not trigger, nor does it trigger when clicking on any other page after changing the entry value.

please provide me any solution or any patch to fix this issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,883 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,416 Reputation points Microsoft Vendor
    2024-04-18T05:33:25.6466667+00:00

    Hello,

    I tested and reproduced the issue. It's an old duplicate issue reported at GitHub, and it was closed by adding a HideSoftInputOnTapped property, see #16530

    But the Unfocus event still cannot be triggered, please reopen- Entry is not triggering the UnFocused event in Android and IOS after upgrading to .NET 8 · Issue #18854 · dotnet/maui · GitHub or create a new issue at GitHub for further help, thanks for your understanding.

    any patch available to fix this issue?

    You could set   HideSoftInputOnTapped="True" for the page, then detect the keyboard status of the Entry: Entry.IsSoftInputShowing() == false(this still cannot trigger the Unfocus event). If the softboard is hidden, you can call your other logic code.

    In other way, you could implement the Completed event on Android platform, and you have to prompt the uses to click the icon-based return button on softboard.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful