Bug 35816 - MaxLength Behavior resets cursor position on Android
Summary: MaxLength Behavior resets cursor position on Android
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-11-12 13:46 UTC by Cody Beyer (MSFT)
Modified: 2017-09-01 02:26 UTC (History)
3 users (show)

Tags: ac, android, editor
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Cody Beyer (MSFT) 2015-11-12 13:46:20 UTC
### Description

The following sample demonstrates an issue where the cursor position is reset when a behavior intended to enforce a max length is used.

### Video


### Sample


### Steps to Reproduce

1. Download Sample
2. Deploy to Android Emulator
3. Type > 4 characters in text field

### Expected Results

Cursor should remain at the end of the field and not allow any further entry

### Actual Results

Cursor resets to front of field and overwrites existing items

### Versions

=== Xamarin Studio ===

Version 5.10 (build 870)
Installation UUID: 73204efb-3f52-4561-bfd0-1a9af26f9341
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.1.1 (9081)
Build 7B1005

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 2edcbef
Branch: master
Build date: 2015-11-10 19:56:25-0500

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 510000870
Git revision: 1212ecb5d4109f6c07c8a9f46b1972bb35556f38
Build date: 2015-11-10 11:07:48-05
Xamarin addins: 733a0b096c4f490368c49f43ae152a8f86e10433
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.11.1
Darwin Codys-MBP.router 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 1 adrianknight89 2016-11-28 00:19:35 UTC
This issue does not exist in If it's fixed, please close it.
Comment 2 David Ortinau [MSFT] 2017-09-01 02:25:49 UTC
Tested on 2.4.0-pre2 and it's working as expected.