-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Entry Completed Event Triggered Twice #27992
Description
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
- Run the app on an Android device or emulator.
- Tap on the Entry, type something, and press the return key.
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.
