Skip to content

Commit 4e02045

Browse files
committed
refactor: 移动 TriggerBlure 到基类
1 parent 638bb2e commit 4e02045

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,4 @@ public async Task TriggerOnChange(string val)
127127
StateHasChanged();
128128
}
129129
}
130-
131-
/// <summary>
132-
/// 出发 OnBlur 回调方法 由 Javascript 触发
133-
/// </summary>
134-
/// <returns></returns>
135-
[JSInvokable]
136-
public async Task TriggerBlur()
137-
{
138-
if (OnBlurAsync != null)
139-
{
140-
await OnBlurAsync(Value);
141-
}
142-
}
143130
}

src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,19 @@ protected async Task OnClickItem(TValue val)
204204
}
205205
}
206206

207+
/// <summary>
208+
/// 出发 OnBlur 回调方法 由 Javascript 触发
209+
/// </summary>
210+
/// <returns></returns>
211+
[JSInvokable]
212+
public async Task TriggerBlur()
213+
{
214+
if (OnBlurAsync != null)
215+
{
216+
await OnBlurAsync(Value);
217+
}
218+
}
219+
207220
/// <summary>
208221
/// <inheritdoc/>
209222
/// </summary>

0 commit comments

Comments
 (0)