Skip to content

Clicking on the label doesn't not toggle the checkbox #1382

Open
@brlin-tw

Description

@brlin-tw

Refer the following clip:
Peek 2019-12-31 15-33

The checkbox is not toggled after clicking on the respective label

<li class="task-list-item" data-startline="2" data-endline="3">
    <input type="checkbox" class="task-list-item-checkbox ">
    <label></label>
    label
</li>

which turns out the label text isn't enclosed by the label element, and the label element does not associated with the corresponding input element either...

Reproduce: https://codimd-app.herokuapp.com/hlAPcGw5TkmI7w_sSpptUQ

Also refer: - HTML: Hypertext Markup Language | MDN

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementWants to improvide an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions