We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b782f commit 927d587Copy full SHA for 927d587
2 files changed
src/BootstrapBlazor/Components/Input/BootstrapInput.razor.js
@@ -1,5 +1,12 @@
1
import EventHandler from "../../modules/event-handler.js"
2
3
+export function focus(id) {
4
+ const el = document.getElementById(id)
5
+ if (el) {
6
+ el.focus();
7
+ }
8
+}
9
+
10
export function clear(id) {
11
const el = document.getElementById(id)
12
if (el) {
src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs
@@ -97,7 +97,7 @@ public abstract class BootstrapInputBase<TValue> : ValidateBase<TValue>
97
/// Method to focus the element
98
/// </summary>
99
/// <returns></returns>
100
- public async Task FocusAsync() => await FocusElement.FocusAsync();
+ public async Task FocusAsync() => await InvokeVoidAsync("focus", GetInputId());
101
102
/// <summary>
103
/// Method to select all text
0 commit comments