title: Why is my Blazor @onclick MouseEventArg not working?
body: <p>I have a simple .RAZOR component in my Blazor (.NET 5) project that looks like this:</p>
  <pre><code>&lt;div&gt;
      &lt;input id=&quot;searchInput&quot; type=&quot;text&quot; name=&quot;queryString&quot; @bind=&quot;queryString&quot; /&gt;
      &lt;button type=&quot;button&quot; @onclick=&quot;PerformSearch&quot;&gt;Search&lt;/button&gt;
  &lt;/div&gt;
  
  @code {
      public String queryString;
  
      public void PerformSearch()
      {
          Console.WriteLine(&quot;Why aren't you working? - &quot; + queryString);
      }
  }
  </code></pre>
  <p>However, when I click the button, the <code>PerformSearch</code> does not get called at all. There are no errors (compile time or run time) in my code. When I put a breakpoint at the <code>Console.Writeline()</code> line, it never gets there at all, and there is nothing in the log that tells me why this is (or isn't) happening.</p>