-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for odd Cursor behavior #7371
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@SotoiGhost This needs to be retargeted to the net6.0 branch if we're going to put it in sr2. |
@SotoiGhost how is this going? This issue is a bit of a blocker for me. Is there anything we can do to help get it through? |
…ew and VirtualView * Fixed for Entry and Editor control * Enhanced logic to update the CursorPosition when setting a text
* Fixed odd cursor position value caused by text being tranformed by Converters
* Moved to the Platform.TextBox extension methods, so this fix can be applied to any subclass of TextBox * Fixed where the CursorPosition could become negative
* Add the default TextBox Keyboard when Editor.Keyboard is null
* Now Entry's CursorPosition and SelectionLength are in sync with its Platform properties * Fixed Entry and Editor CursorPosition and SelectionLength override at init
…m Core to Control project
* Fixed some Entry and Editor device tests
@devonuto Sorry for the late reply, I missed your post. This PR was ready yesterday and hope to be reviewed by the following week. |
The following tests are failing on CI but are unrelated to these PR changes:
|
No worries. Looks like it's still failing a couple of checks. Will that stop it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just a concern about the casting in the connect/disconnect methods.
|
||
if (!_set) | ||
// TODO: NET7 issoto - Remove the casting once we can set the TPlatformView generic type as MauiAppCompatEditText | ||
((MauiAppCompatEditText)PlatformView).SelectionChanged += OnSelectionChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all these direct casts should be if(PlatformView is MauiAppCompatEditText editText)
; if someone has previously subclassed EntryHandler and overridden CreatePlatformView
to use a different AppCompatEditText
subclass, then the cast to MauiAppCompatEditText
will fail at runtime.
…sh if [Editor|Entry]Handler is subclassed
@hartez @SotoiGhost I take it this merge didn't make it into 6.0.7? |
Description of Change
This PR brings the following fixes on iOS, Mac, and Android:
IsPassword
is enabledFor Windows:
IsPassword
is setIssues Fixed
IsPassword
is set to true #6906