hackmdio / hackmdio/codimd

Clicking on the label doesn't not toggle the checkbox

Open
#1,382 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Refer the following clip:
![Peek 2019-12-31 15-33](https://user-images.githubusercontent.com/13408130/71613698-ddae1c80-2be2-11ea-98f7-7d828d51f387.gif)

The checkbox is not toggled after clicking on the respective label

```html




  • label

  • ```

    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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label)

    Contributor guide

    Open the contributing guide

    Assessment

    This issue has not been assessed yet.

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.