Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
  • Loading branch information
rmarinho and MartyIX committed Feb 19, 2024
1 parent 6e59037 commit 2be5aad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ static void UpdateText(this IUITextInput textInput, InputView inputView, bool is
var textRange = textInput.GetTextRange(textInput.BeginningOfDocument, textInput.EndOfDocument);
var oldText = textInput.TextInRange(textRange) ?? string.Empty;

// We need this variable because in some cases because of the iOS's
// auto correction eg. eg '--' => '—' the actual text in the input might have
// We need this variable in some cases because of the iOS's
// auto correction eg. '--' => '—' the actual text in the input might have
// a different length that the one that has been set in the control.
var newTextLength = textInput.TextInRange(textRange)?.Length ?? 0;

Expand Down

0 comments on commit 2be5aad

Please sign in to comment.