mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
8 lines
158 B
Plaintext
8 lines
158 B
Plaintext
@page "/setfocus"
|
|
|
|
<input @ref="textInput" />
|
|
<button @onclick="() => textInput.FocusAsync()">Set focus</button>
|
|
|
|
@code {
|
|
ElementReference textInput;
|
|
} |