Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Setting Entry.CursorPosition highlights portion of Entry.Text. #14517

Open
aeonblaire opened this issue Aug 17, 2021 · 0 comments
Open

Comments

@aeonblaire
Copy link

aeonblaire commented Aug 17, 2021

Description

Sample code:
Setting_CursorPosition_Highlights_Text.zip

Selecting/highlighting portions of Text triggers this behavior. Seems like the resulting SelectionLength is equal to CursorPosition. Only tested on iOS.

Steps to Reproduce

  1. Run sample app.
  2. Enter sample text '0123456'.
  3. Highlight/select any text.
  4. Deselect text.
  5. Tap 'RUN'.

Expected Behavior

Entry.CursorPosition set to 3.

Actual Behavior

Entry.CursorPosition set to 3, Entry.SelectionLength set to 3.

Basic Information

  • Version with issue: XF 5.0.02083
  • Last known good version: n/a
  • Platform Target Frameworks:
    • iOS: Default/Latest
    • Android:
    • UWP:
  • Android Support Library / AndroidX Version:
  • NuGet Packages: Xamarin.Forms, Xamarin.Essentials
  • Affected Devices: iPhone

Environment

Show/Hide Visual Studio info
=== Visual Studio Community 2019 for Mac ===

Version 8.10.6 (build 10)
Installation UUID: cf5939cc-5d4e-45bf-a266-1c72193d2ab2
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

	Package version: 612000140

=== Mono Framework MDK ===

Runtime:
	Mono 6.12.0.140 (2020-02/51d876a041e) (64-bit)
	Package version: 612000140

=== Roslyn (Language Service) ===

3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb

=== NuGet ===

Version: 5.9.0.7134

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.302/Sdks
SDK Versions:
	5.0.302
	5.0.301
	5.0.203
	5.0.100
	3.1.411
	3.1.410
	3.1.409
	3.1.200
	3.1.102
	3.0.101
	3.0.100
	2.1.701
	2.1.505
	2.1.504
	2.1.302
	2.1.301
	2.1.4
	2.0.0
	1.0.3
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	5.0.8
	5.0.7
	5.0.6
	5.0.0
	3.1.17
	3.1.16
	3.1.15
	3.1.2
	3.0.1
	3.0.0
	2.1.23
	2.1.16
	2.1.15
	2.1.14
	2.1.12
	2.1.9
	2.1.8
	2.1.2
	2.1.1
	2.0.5
	2.0.0
	1.1.1
	1.0.4

=== .NET Core 3.1 SDK ===

SDK: 3.1.411

=== Xamarin.Profiler ===

Version: 1.6.12.29
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Xamarin Designer ===

Version: 16.10.0.119
Hash: 36a2d986f
Branch: remotes/origin/d16-10
Build date: 2021-06-02 19:41:34 UTC

=== Apple Developer Tools ===

Xcode 12.5.1 (18212)
Build 12E507

=== Xamarin.Mac ===

Version: 7.14.0.24 (Visual Studio Community)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:00-0400

=== Xamarin.iOS ===

Version: 14.20.0.24 (Visual Studio Community)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:01-0400

=== Xamarin.Android ===

Version: 11.3.0.4 (Visual Studio Community)
Commit: xamarin-android/d16-10/ae14caf
Android SDK: /Users/marco/Documents/Android SDK
	Supported Android versions:
		None installed

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 31.0.2
SDK Build Tools Version: 30.0.2

Build Information: 
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10@f39db25
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10@c5732a0

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/marco/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.10.0.12
Hash: e240b8c
Branch: remotes/origin/d16-10
Build date: 2021-06-01 18:26:34 UTC

=== Android Device Manager ===

Version: 16.10.0.14
Hash: e340248
Branch: remotes/origin/d16-10
Build date: 2021-06-01 18:26:52 UTC

=== Build Information ===

Release ID: 810060010
Git revision: 263d2fc9398e8092c231fa5d310cd72205cd627c
Build date: 2021-07-08 14:37:29-04
Build branch: release-8.10

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.5.0 Darwin Kernel Version 20.5.0
    Sat May  8 05:10:33 PDT 2021
    root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

DeepClean 1.2.5

@aeonblaire aeonblaire added s/unverified New report that has yet to be verified t/bug 🐛 labels Aug 17, 2021
@jsuarezruiz jsuarezruiz added p/iOS 🍎 and removed s/unverified New report that has yet to be verified labels Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants