Browse Source

Merge pull request #9998 from mrmandrake/master

Update TextInputResponder.cs
pull/10004/head
Max Katz 4 years ago
committed by GitHub
parent
commit
a5d23dae87
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/iOS/Avalonia.iOS/TextInputResponder.cs

2
src/iOS/Avalonia.iOS/TextInputResponder.cs

@ -445,7 +445,7 @@ partial class AvaloniaView
UITextPosition IUITextInput.BeginningOfDocument => _beginningOfDocument;
private int DocumentLength => _client.SurroundingText.Text.Length + (_markedText?.Length ?? 0);
private int DocumentLength => (_client.SurroundingText.Text?.Length ?? 0) + (_markedText?.Length ?? 0);
UITextPosition IUITextInput.EndOfDocument => new AvaloniaTextPosition(DocumentLength);
UITextRange IUITextInput.MarkedTextRange

Loading…
Cancel
Save