Skip to content

Commit 8294e39

Browse files
committed
revert: 重置代码
1 parent acfc4c4 commit 8294e39

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
55

6-
using Microsoft.AspNetCore.Components.Web;
7-
86
namespace BootstrapBlazor.Components;
97

108
/// <summary>
@@ -215,7 +213,7 @@ protected virtual async Task OnBlur()
215213
/// </summary>
216214
/// <returns></returns>
217215
[JSInvokable]
218-
public virtual async Task EnterCallback(KeyboardEventArgs e, string val)
216+
public async Task EnterCallback(string val)
219217
{
220218
if (OnEnterAsync != null)
221219
{

src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,4 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
6363
await InvokeVoidAsync("execute", Id, "update");
6464
}
6565
}
66-
67-
/// <summary>
68-
/// Client-side EnterCallback method
69-
/// </summary>
70-
/// <returns></returns>
71-
[JSInvokable]
72-
public override async Task EnterCallback(KeyboardEventArgs e, string val)
73-
{
74-
if (OnEnterAsync != null && TriggerEnter(e))
75-
{
76-
CurrentValueAsString = val;
77-
await OnEnterAsync(Value);
78-
}
79-
}
80-
81-
private bool TriggerEnter(KeyboardEventArgs e) => UseShiftEnter ? e.ShiftKey : true;
8266
}

0 commit comments

Comments
 (0)