Skip to content

Commit 016ce93

Browse files
committed
feat: 增加 IsAutoClearSearchTextWhenCollapsed 参数
1 parent ffc4ce2 commit 016ce93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/BootstrapBlazor/Components/Select/Select.razor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public partial class Select<TValue> : ISelect, ILookup
111111
[Parameter]
112112
public string? DefaultVirtualizeItemText { get; set; }
113113

114+
/// <summary>
115+
/// Gets or sets whether auto clear the search text when dropdown closed.
116+
/// </summary>
117+
[Parameter]
118+
public bool IsAutoClearSearchTextWhenCollapsed { get; set; }
119+
114120
IEnumerable<SelectedItem>? ILookup.Lookup { get => Items; set => Items = value; }
115121

116122
StringComparison ILookup.LookupStringComparison { get => StringComparison; set => StringComparison = value; }

0 commit comments

Comments
 (0)