File tree Expand file tree Collapse file tree
src/BootstrapBlazor/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information.
44// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
55
6- using Microsoft . AspNetCore . Components . Web ;
7-
86namespace 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 {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments