title: Blazored Fluent Validation Against Collection Not Working
body: <p>When I build an edit form against a single class, everything works as expected. The red/green indicators show up when I leave the field. However, when I make that a collection, I lose the red/green logic when I leave the field. It now always turns green when indeed the validation should fail. When I manually call</p>
  <pre class="lang-cs prettyprint-override"><code>_fluentValidationValidator.Validate(opt =&gt; opt.IncludeAllRuleSets())
  </code></pre>
  <p>it validates and changes the field outline accordingly.</p>
  <p>How do I have the validation run appropriately when I leave the field when dealing with a collection?</p>
  <pre class="lang-html prettyprint-override"><code>&lt;EditForm Model=&quot;Form&quot;&gt;
      &lt;FluentValidationValidator @ref=&quot;_fluentValidationValidator&quot; /&gt;
      
      @foreach (var item in Form.Items)
      {
          &lt;div class=&quot;row&quot;&gt;
              &lt;div class=&quot;col-6 col-md-3 mb-1&quot;&gt;
                  &lt;label class=&quot;input-label&quot;&gt;Name&lt;/label&gt;
                  &lt;InputText @bind-Value=&quot;item.Name&quot;
                                  Style=&quot;width:100%;&quot; /&gt;
  
                  &lt;ValidationMessage For=&quot;() =&gt; item.Name&quot; /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      }
  &lt;/EditForm&gt;
  </code></pre>
  <pre class="lang-cs prettyprint-override"><code>public class TestForm
  {
      public List&lt;TestItem&gt; Items { get; set; } = new();
  }
  </code></pre>
  <pre class="lang-cs prettyprint-override"><code>public class TestFormValidator : AbstractValidator&lt;TestForm&gt;
  {
      public TestFormValidator()
      {
          RuleForEach(r =&gt; r.Items).SetValidator(new TestItemValidator());
      }
  }
  </code></pre>
  <pre class="lang-cs prettyprint-override"><code>public class TestItem
  {
      public string Name { get; set; }
  }
  </code></pre>
  <pre class="lang-cs prettyprint-override"><code>public class TestItemValidator : AbstractValidator&lt;TestItem&gt;
  {
      public TestItemValidator()
      {
          RuleFor(x =&gt; x.Name)
              .NotEmpty().WithMessage(&quot;Name is required&quot;)
              .MaximumLength(6).WithMessage(&quot;Name should be at most 6 characters&quot;);
      }
  }
  </code></pre>