Is there a Blazor-native way to select all text in a text input field on user focus? Something like this in JavaScript:
<input onClick="this.select();" >
I've built a JS interop function to do this, but I'd rather use something in-the-box.
Is there a Blazor-native way to select all text in a text input field on user focus? Something like this in JavaScript:
<input onClick="this.select();" >
I've built a JS interop function to do this, but I'd rather use something in-the-box.
Steven,
Just use the HTML from your question.
<input onClick="this.select();" >
That also works in Blazor