title: Model popup is not showing in Blazor with @ref attribute
body: <p>I have created a shared component for Model popup and using @ref attribute while registering the component. I am not getting any error but my model popup is not showing.</p>
  
  <p>Below the code for CofirmationBox  </p>
  
  <pre><code>@inherits ConfirmModelBoxBase
  
  @if (ShowConfirmationBox)
  {
  
  &lt;div class="modal fade show d-block" id="exampleModal" tabindex="-1" role="dialog"&gt;
      &lt;div class="modal-dialog" role="document"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;h5 class="modal-title" id="exampleModalLabel"&gt;Confirm Delete&lt;/h5&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                      &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  Are you sure want to delete the record?
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Cancel&lt;/button&gt;
                  &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  }
  
  
   public class ConfirmModelBoxBase : ComponentBase
  {
      [Parameter] public bool ShowConfirmationBox { get; set; }
  
      [Parameter] public EventCallback&lt;bool&gt; CoonfirmationChanged { get; set; }
  
      public void Show()
      {
          ShowConfirmationBox = true;
          StateHasChanged();
      }
  
  }
  </code></pre>
  
  <p>Registering the Component on My employee list page</p>
  
  <pre><code> &lt;ConfirmModelBoxBase @ref="DeleteConfirmation"&gt;
  
   &lt;/ConfirmModelBoxBase&gt;
  </code></pre>
  
  <p>Server side call to show the popup</p>
  
  <pre><code>[Parameter] public ConfirmModelBoxBase DeleteConfirmation { get; set; }
  
  protected void btnDelete_Click()
      {
          DeleteConfirmation.Show();
   }
  </code></pre>