title: Is there a way to use both @onfocus and HTML focus in Blazor without JavaScript?
body: <p>I am quite new to Blazor, but I need to select the whole input field when the element is focussed.</p>
  <p>In HTML, I can use this:</p>
  <pre><code>&lt;input onfocus=&quot;this.select();&quot;&gt;
  </code></pre>
  <p>The problem however: I already have a Blazor method binded to the @onfocus event:</p>
  <pre><code>&lt;input @onfocus=&quot;@OnFocus&quot;
  </code></pre>
  <p>I can't use both of them, as I get the following error in Visual Studio:
  <a href="https://i.stack.imgur.com/8sWuN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8sWuN.png" alt="Blazor Error" /></a></p>
  <p>This means that I need to find a way to select the input field somehow inside the OnFocus() method. I know I can fix this issue using JavaScript (JSInterop), but I hope there is somehow a way to do this without using JavaScript.</p>
  <p>Current OnFocus() method:</p>
  <pre><code>private void OnFocus (FocusEventArgs e) {
     if (String.IsNullOrEmpty(this.inputValue)) {
       this.inputValue = Utils.SetDefaultValue();
     }
     Utils.SelectInput(this.index); &lt;-- current working JSInterop method I want to get rid off
  }
  </code></pre>