-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Entry Completed Event Triggered Twice #27992
Comments
@SethupathyD This was fixed with #26501 in 9.0.30 |
Please try with the latest .NET 9 version, at the time of writing 9.0.40 and see how that changes the behavior and if that solves your problem. Thanks! |
Hi @jfversluis , I have verified that with the latest version (9.0.40) on the Android platform. Setting ReturnType="Search" works without appendToMapping, but the issue still persists—the Completed event is triggered twice when performing a search on Android. Regards, |
@Ying-6 @SethupathyD does this also happen on other platforms like Windows or iOS or only on Android? |
@jfversluis This issue does not repro on iOS and Windows platforms on 9.0.40. |
Description
When setting ReturnType="Search" in an Entry on Android, the return key type does not update properly. To work around this, I used EntryHandler.Mapper.AppendToMapping to ensure UpdateReturnType(view) is called when the view is attached to the window. However, this causes the Completed event to fire twice—once for the actual return key press and once due to the view being updated dynamically.
Steps to Reproduce
Steps to reproduce
Expected Behavior
The return key should immediately display as "Search" when the ReturnType is set.
The Completed event should fire only once when the return key is pressed.
Actual Behavior
The return key does not initially show "Search" unless modified using EntryHandler.Mapper.
The Completed event fires twice when pressing the return key.
Link to public reproduction project repository
https://github.com/SethupathyD/EntryTypeIssue
Version with bug
8.0.83 SR8.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
Used mapping as a work around but entry completed event gets trigerred twice.
Relevant log output
The text was updated successfully, but these errors were encountered: