havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
475 stars 66 forks source link

[HxSwitch] Classes form-check form-switch missing #742

Closed HonzaZajic298 closed 7 months ago

HonzaZajic298 commented 7 months ago

Hello,

I am experiencing a change of rendering behaviour for a HxSwitch which is used within HxGrid. In version 4.5.0 that HxSwitch is no longer rendered as switch but as a checkbox.

HTML rendered in version 4.3.5

<td class="" b-693m69k5v1="">
  <!--!--><!--!-->
  <div class="hx-form-group position-relative form-check form-switch">
    <!--!-->
    <input id="el5232d35cd4c8452183d4f0e74e39685d" name="item.Base" type="checkbox" class="form-check-input" _bl_6840b64a-4d30-4c17-99ed-e2a1c9a456dd="">
    <label class="form-check-label" for="el5232d35cd4c8452183d4f0e74e39685d"></label>
    <!--!-->
    <div b-sq8mx7uk7p=""></div>
  </div>
  <!--!-->
</td>

HTML rendered in version 4.5.0

<td class="" b-693m69k5v1="">
  <!--!-->
  <!--!-->
  <div class="hx-form-group position-relative">
    <!--!-->
    <input id="elf05ed9f402a2434aa3ec34d9f356379e" name="item.Base" type="checkbox" class="form-check-input" _bl_f911bfa3-fa5d-4380-b3c6-4dc81a00d87e="">
    <label class="form-check-label" for="elf05ed9f402a2434aa3ec34d9f356379e"></label>
    <!--!-->
    <div b-sq8mx7uk7p=""></div>
  </div>
</td>

Thank you for offering your valuable advice.

crdo commented 7 months ago

This is a regression caused by https://github.com/havit/Havit.Blazor/commit/b6b87c553be4356f7e4babba66b0a079e2009ebc.