Browse Source

remove coercecaretindex (#14264)

Robert Mutniański 1 year ago
parent
commit
f6bda07ae6

+ 1 - 2
src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.Properties.cs

@@ -22,8 +22,7 @@ namespace Avalonia.Controls
         public static readonly StyledProperty<int> CaretIndexProperty =
             TextBox.CaretIndexProperty.AddOwner<AutoCompleteBox>(new(
                 defaultValue: 0,
-                defaultBindingMode:BindingMode.TwoWay,
-                coerce: TextBox.CoerceCaretIndex));
+                defaultBindingMode:BindingMode.TwoWay));
 
         public static readonly StyledProperty<string?> WatermarkProperty =
             TextBox.WatermarkProperty.AddOwner<AutoCompleteBox>();