Studentassistenten-Windesheim / ASVS-for-dummies

1 stars 1 forks source link

Clicking label selects incorrect checkbox #1

Closed jaelkwakkel closed 9 months ago

jaelkwakkel commented 9 months ago

Description When clicking on a label for a checkbox to select a category, the label always selects the Nth of the first column

To Reproduce Steps to reproduce the behavior:

  1. Go to the asvs list
  2. Click on any label not on the first column
  3. A different checkbox is selected

Expected behavior When clicking on a label, the corresponding checkbox should be selected

Screenshots image

Additional information Probable cause: When generating the checkboxes and labels, there are multiple checkboxes with the same index. When assigning the HTML for attribute, it will bind to the first one with the index.