Browse Source

set default value of IsTextSearchEnabled to true

luthfiampas 4 years ago
parent
commit
a4477e7de6

+ 1 - 1
src/Avalonia.Controls/ComboBox.cs

@@ -81,7 +81,7 @@ namespace Avalonia.Controls
         /// Defines the <see cref="IsTextSearchEnabled"/> property.
         /// </summary>
         public static readonly StyledProperty<bool> IsTextSearchEnabledProperty =
-            AvaloniaProperty.Register<ComboBox, bool>(nameof(IsTextSearchEnabled));
+            AvaloniaProperty.Register<ComboBox, bool>(nameof(IsTextSearchEnabled), true);
 
         private string _textSearchTerm = string.Empty;
         private DispatcherTimer _textSearchTimer;

+ 0 - 1
tests/Avalonia.Controls.UnitTests/ComboBoxTests.cs

@@ -154,7 +154,6 @@ namespace Avalonia.Controls.UnitTests
             {
                 var target = new ComboBox
                 {
-                    IsTextSearchEnabled = true,
                     Template = GetTemplate(),                    
                     Items = items.Select(x => new ComboBoxItem { Content = x })
                 };