File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/BootstrapBlazor/Components/Input Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import EventHandler from "../../modules/event-handler.js"
22
3+ export function focus ( id ) {
4+ const el = document . getElementById ( id )
5+ if ( el ) {
6+ el . focus ( ) ;
7+ }
8+ }
9+
310export function clear ( id ) {
411 const el = document . getElementById ( id )
512 if ( el ) {
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public abstract class BootstrapInputBase<TValue> : ValidateBase<TValue>
9797 /// Method to focus the element
9898 /// </summary>
9999 /// <returns></returns>
100- public async Task FocusAsync ( ) => await FocusElement . FocusAsync ( ) ;
100+ public async Task FocusAsync ( ) => await InvokeVoidAsync ( "focus" , GetInputId ( ) ) ;
101101
102102 /// <summary>
103103 /// Method to select all text
You can’t perform that action at this time.
0 commit comments