Skip to content

Commit 0fd59c6

Browse files
committed
refactor: 更新 _clientValue 参数位置
1 parent 24993b9 commit 0fd59c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ protected override void OnInitialized()
119119
_filterItems = [.. _filterItems.Take(DisplayCount.Value)];
120120
}
121121
}
122-
123-
_clientValue = Value ?? "";
124122
}
125123

126124
/// <summary>
@@ -134,6 +132,8 @@ protected override void OnParametersSet()
134132
PlaceHolder ??= Localizer[nameof(PlaceHolder)];
135133
Icon ??= IconTheme.GetIconByKey(ComponentIcons.AutoCompleteIcon);
136134
LoadingIcon ??= IconTheme.GetIconByKey(ComponentIcons.LoadingIcon);
135+
136+
_clientValue = Value ?? "";
137137
}
138138

139139
/// <summary>

0 commit comments

Comments
 (0)