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
  • #22049
Closed
Open
Issue created Feb 22, 2017 by Administrator@rootContributor

data-toggle=collapse with a checkbox to trigger the toggle

Created by: jcwchriswalker

Using this fiddle as the testcase:

http://jsfiddle.net/jcwchriswalker/e8wwhqcx/

Note that by checking on/off the checkbox will hide and show the element targeted by the data-target. However the checkbox will not show checked/unchecked state. I looked through the documentation concerning what elements support the data-toggle attribute but could not find any definitive list. It seems that the checkbox's event handler set a preventDefault() keeping the checkbox from setting on/off but showing/hiding the data-target.

Assignee
Assign to
Time tracking