In .NET5 it will be much simpler: <button @onclick="() => textInput.FocusAsync()">Set focus</button> <input @ref="textInput"/>.
確定! 回上一頁