title: How to enable/disable inputs in blazor
body: <p>I am trying to <code>Enable/Disable</code> a group of <code>time</code> inputs in Blazor based on a <code>checkbox</code> ;  while for <code>inputs</code> of type <code>button</code> the below solution works ,for inputs of type <code>time</code> it doesn't :</p>
  
  <p>Solution for button input that works:</p>
  
  <pre><code>&lt;button type="button" class="@this.SetButton"&gt;&lt;/button&gt;
  
  [Parameter] public bool state { get; set; }
  
  public string SetButton() {
      string result = state ? "" : "disabled";
      return result;
  }
  </code></pre>
  
  <p>Attempt for time inputs that does not work:</p>
  
  <pre><code>&lt;input bind="@IsDisabled" type="checkbox" /&gt;                      
  &lt;input class="@this.GetGroupState()" type="time" /&gt;
  
  protected bool IsDisabled { get; set; }
  
  public string GetGroupState() {
      return this.IsDisabled ? "disabled" : "";
  }
  </code></pre>
  
  <p>P.S.: In the first scenario the <code>bool</code> comes as a parameter from another <code>component</code> so I don't bind it. In the second case, however, it is bound to the <code>checkbox</code>.</p>