We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug If you set the component in an input-group the render is not correct.
To Reproduce Steps to reproduce the behavior:
<main class="container"> <div class="input-group input-group-sm mb-3"> <span class="input-group-text" id="inputGroup-sizing-sm">Small</span> <input type="checkbox" checked data-toggle="toggle" data-size="sm"> </div> <div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">Default</span> <input type="checkbox" checked data-toggle="toggle"> </div> <div class="input-group input-group-lg"> <span class="input-group-text" id="inputGroup-sizing-lg">Large</span> <input type="checkbox" checked data-toggle="toggle" data-size="lg"> </div> </main> <script>$('input[data-toggle="toggle"]').bootstrapToggle();</script>
Expected behavior Render correctly
Screenshots
Package (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Hi! 👋 Thanks for your issue. You are helping to improve Bootstrap 5 toggle.
Sorry, something went wrong.
refers: gitbrent#32 by: @daniel-scatigno fixed base in : @bryan-brancotte comment
hi @bryan-brancotte,
Do you want to fixed sending a pull-request for been corretly acknowledge?
Just in bootstrap 5 there is not needed to add the class input-group-btn, so the fix will be:
input-group-btn
.input-group .toggle-on, .input-group .toggle-off{ position: absolute; }
Hi @palcarazm
Thanks for the proposition, you can push the fix by yourself if you are ok with this.
fix: Render on input group
2ea9801
Fixes #24
palcarazm
Successfully merging a pull request may close this issue.
Describe the bug
If you set the component in an input-group the render is not correct.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Render correctly
Screenshots
Package (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: