Skip to content

Commit ad4c969

Browse files
committed
refactor: 移除可为空
1 parent 97ca526 commit ad4c969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Search/Search.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
146146
}
147147
}
148148

149-
private string? _displayText;
149+
private string _displayText = "";
150150
private bool _show;
151151
/// <summary>
152152
/// 点击搜索按钮时触发此方法

0 commit comments

Comments
 (0)