Infinite loop in SaveCommentOnBlur when Unfocused event is triggered in MAUI
In my custom MAUI entry control, the SaveCommentOnBlur
method gets stuck in an infinite loop when the EntryField_Unfocused
event is triggered. This causes the keyboard to hang, and either the keyboard or the app becomes unresponsive.
Steps to Reproduce:
- Click on the entry field and try to add or remove text.
- Observe that the focus event is triggered multiple times, causing an infinite loop.
Expected Behavior: The SaveCommentOnBlur
method should be triggered only once, and the loss of focus should not cause any unintended loops or freezes.
Actual Behavior: The SaveCommentOnBlur
method is triggered multiple times, causing an infinite loop and freezing the keyboard.
Sample Code: GitHub Repository - UnfocusedIssue
I need help resolving this.