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
  • #27600
Closed
Open
Issue created Nov 05, 2018 by Administrator@rootContributor

Button toggling checkbox is always left un-checked on spacebar "click"

Created by: bggardner

  • Operating system and version: Ubuntu 18.10
  • Browser and version: Chrome 70.0.3538.77 and Firefox 63.0
  • Example: https://jsbin.com/gaxuwobiku/edit?html,output

Problem: When I'm filling out forms using a physical keyboard, I typically tab from input to input, and use the spacebar for checking/unchecking checkboxes. Unfortunately, using the example code for a label button with "embedded" checkbox does not work when the spacebar initiates the "click". A mouse click works as expected. It appears to do something with the timing of the event, as the "checked" property is properly set immediately after the event, but is always removed (read as false) sometime after.

Assignee
Assign to
Time tracking