Skip to content

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

@bggardner

Description

@bggardner

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions