diff --git a/src/Avalonia.Controls/TextBox.cs b/src/Avalonia.Controls/TextBox.cs index b12c23c597..aa8c239d27 100644 --- a/src/Avalonia.Controls/TextBox.cs +++ b/src/Avalonia.Controls/TextBox.cs @@ -411,6 +411,8 @@ namespace Avalonia.Controls var newValue = e.GetNewValue(); SetCurrentValue(SelectionStartProperty, newValue); SetCurrentValue(SelectionEndProperty, newValue); + + _presenter?.SetCurrentValue(TextPresenter.CaretIndexProperty, newValue); } ///