test: add basic unit test, fix a search text issue.
This commit is contained in:
@@ -431,7 +431,7 @@ public partial class MultiAutoCompleteBox
|
||||
/// The search mode is automatically set to Custom if you set the
|
||||
/// TextFilter property.
|
||||
/// </remarks>
|
||||
public AutoCompleteFilterPredicate<string?>? TextFilter
|
||||
public AutoCompleteFilterPredicate<string> TextFilter
|
||||
{
|
||||
get => GetValue(TextFilterProperty);
|
||||
set => SetValue(TextFilterProperty, value);
|
||||
|
||||
@@ -1257,15 +1257,8 @@ public partial class MultiAutoCompleteBox : TemplatedControl, IInnerContentContr
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO implement selection.
|
||||
/*
|
||||
SearchText = string.Empty;
|
||||
if (SelectedItem != null) _skipSelectedItemTextUpdate = true;
|
||||
|
||||
SetCurrentValue(SelectedItemProperty, null);
|
||||
|
||||
if (IsDropDownOpen) SetCurrentValue(IsDropDownOpenProperty, false);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user