Skip to content
New issue

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

Doesn't render correctly when using Input Group #32

Open
daniel-scatigno opened this issue Mar 6, 2020 · 1 comment
Open

Doesn't render correctly when using Input Group #32

daniel-scatigno opened this issue Mar 6, 2020 · 1 comment

Comments

@daniel-scatigno
Copy link

daniel-scatigno commented Mar 6, 2020

When using inside an input-group the Off button doesn't render corretly
Example:

                  <div class="form-group">
                    <div class='input-group'>
                        <input type="hidden" name='' value="" />
                        <input type='text' class='form-control telefone' />
                        <div class='input-group-append'>
                          <div class='input-group-btn'>
                            <input type='checkbox' class="" data-toggle='toggle'
                             value="true" data-off="Não" data-on="Sim">
                            <input type='hidden'  value="false" />
                          </div>
                      </div>
                    </div>
                  </div>

@bryan-brancotte
Copy link

I had the same issue, and fixed it:

.input-group .input-group-btn .toggle-on,
.input-group .input-group-btn .toggle-off{
    position: absolute;
}

bryan-brancotte added a commit to bryan-brancotte/bootstrap4-toggle that referenced this issue Apr 21, 2020
When using a toggle in a input-group-btn, the `position: absolute` was overridden. By using a more specific selector, we ensure that position is absolute

Fixing gitbrent#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants