palcarazm / bootstrap5-toggle

Bootstrap 5 Toggle is a bootstrap plugin/widget that converts checkboxes into toggles.
https://palcarazm.github.io/bootstrap5-toggle/
MIT License
39 stars 4 forks source link

[BUG] 5.1.0 doesn't render HTML #174

Closed BudsieBuds closed 5 months ago

BudsieBuds commented 5 months ago

Describe the bug After updating from 5.0.6 to 5.1.0, HTML isn't rendered inside the toggle.

To Reproduce

<input type="checkbox" checked data-toggle="toggle" data-onlabel="<i class='bi-play'></i> Play" data-offlabel="<i class='bi-pause'></i> Pause">

Screenshots Bootstrap 5 Toggle 5.0.6:

Bootstrap 5 Toggle 5.0.6

Bootstrap 5 Toggle 5.1.0:

Bootstrap 5 Toggle 5.1.0

Package:

Desktop:

github-actions[bot] commented 5 months ago

Hi! :wave: Thanks for your issue. You are helping to improve Bootstrap 5 toggle.

palcarazm commented 5 months ago

Thanks for reporting.

The issue is fixed in v5.1.1.

The issue is a border effect of #160