Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #16693
Closed
Open
Issue created Jun 24, 2015 by Administrator@rootContributor

data-toggle="buttons" problem in v3.3.5

Created by: kntmrkm

I don't know I think this issue is specific for Rails.

But bootstrap version up have broken button toggle's function.

I have a code like below.

<div data-toggle="buttons">
      <div class="checkbox">
        <label class="btn btn-block btn-facebook " for="post_post_facebook">
          <input name="post[post_facebook]" type="hidden" value="0" />
          <input class="hidden" type="checkbox" value="1" name="post[post_facebook]" id="post_post_facebook" /> Share with Facebook</label>
      </div>
</div>

Gyazo

The code works with version 3.3.4.1.

But, With 3.3.5. After click button. Toggle function does not works.

So, I have removed <input name="post[post_facebook]" type="hidden" value="0" /> .

Then Toggle function works.

I think data-toggle='buttons' does not work with Rails form generator.

Is not?

(moved from https://github.com/twbs/bootstrap-sass/issues/923#issuecomment-114588190)

Assignee
Assign to
Time tracking