Skip to content

Entry Completed Event Triggered Twice #27992

@SethupathyD

Description

@SethupathyD

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.

Image

Steps to Reproduce

Steps to reproduce

  1. Run the app on an Android device or emulator.
  2. 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.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-keyboardKeyboard, soft keyboardplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions