Focus/Unfocus event not triggering for DatePicker / Entry in .NET MAUI

Mane, PRASHANT GORAKH 106 Reputation points
2023-12-01T06:55:08.9666667+00:00

Hi,
While working with DatePicker, Focus and Unfocus events not getting triggered. and we observed the same behaviour for the custom entry when the user enter the data into the entry box and clicked out of the box unfocused event not triggered.

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

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,416 Reputation points Microsoft External Staff
    2023-12-06T09:26:38.0066667+00:00

    Hello,

    I test the code snippets and reproduce the issue. For Entry, it's a known issue reported at GitHub- Android Unfocused Entry Behavior only gets called when leaving the page #11881

    For DatePicker, you could follow Datepicker focus and unfocus event not firing on android #18797 and Fix (or don't) the behavior of calling "Focus" on Android to open the picker #8946

    Since they are known issues, it's recommended that you follow the progress and add comments at GitHub directly to let them know your any concerns and needs. Thanks for your understanding.

    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.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.