Skip to content

Commit 8bec079

Browse files
committed
refactor: 更正方法名称
1 parent 52ad5b8 commit 8bec079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private SelectedItem? SelectedRow
294294

295295
private SelectedItem? GetSelectedRow()
296296
{
297-
var item = GetItemWidthEnumValue()
297+
var item = GetItemWithEnumValue()
298298
?? Rows.Find(i => i.Value == CurrentValueAsString)
299299
?? Rows.Find(i => i.Active)
300300
?? Rows.FirstOrDefault(i => !i.IsDisabled)
@@ -315,7 +315,7 @@ private SelectedItem? SelectedRow
315315
return item;
316316
}
317317

318-
private SelectedItem? GetItemWidthEnumValue() => ValueType.IsEnum
318+
private SelectedItem? GetItemWithEnumValue() => ValueType.IsEnum
319319
? Rows.Find(i => i.Value == Convert.ToInt32(Value).ToString())
320320
: null;
321321

0 commit comments

Comments
 (0)