Skip to content

Commit

Permalink
Fix TextBlock wrong caret position (#14627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Donzasto authored Feb 19, 2024
1 parent 073a530 commit cde90cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
}
else if (change.Property == SelectionEndProperty)
{
_presenter?.MoveCaretToTextPosition(CaretIndex);

OnSelectionEndChanged(change);
}
else if (change.Property == MaxLinesProperty)
Expand Down

0 comments on commit cde90cc

Please sign in to comment.