-
Notifications
You must be signed in to change notification settings - Fork 1.9k
The entry's cursor position is lost when transitioning to the next entry field on iOS only #19109
Copy link
Copy link
Closed
Labels
area-controls-entryEntryEntryarea-keyboardKeyboard, soft keyboardKeyboard, soft keyboardi/great-reporterThis issue is opened by an author who is known to open high-quality issuesThis issue is opened by an author who is known to open high-quality issuespartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-controls-entryEntryEntryarea-keyboardKeyboard, soft keyboardKeyboard, soft keyboardi/great-reporterThis issue is opened by an author who is known to open high-quality issuesThis issue is opened by an author who is known to open high-quality issuespartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The entry's
CursorPositionproperty is being ignored when moving to the next field.If I set the CursorPosition property in the Entry XAML control, it is not being counted to set the position when moving from a previous entry, and it always fall at the end of the text in the entry control.
I found out that this file may be the responsible of setting the cursor position at the end of the text in the entry control.
Steps to Reproduce
What happened is that the cursor position is at the end of the text length of the Entry 2 instead of the position 5 set on the Entry's 2 property.
This issue occurs only on iOS. I ran tests on Android, MacCatalyst , and Windows and it worked OK.
maui-cursor-position-issue-ios.mp4
Link to public reproduction project repository
https://github.com/vhugogarcia/maui-sample-cursor-position
Version with bug
8.0.3
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
if I set the Entry 2
CursorPositionproperty on an event in the code-behind it works partially. The first time it sets the cursor in the specified position, however, if I focus again on Entry 1 and tap on theNextbutton, the cursor position goes to the end of the text length.Relevant log output
Not log, but I believe I found the file that is responsible for the cursor position on iOS: TextExtension.cs