Skip to content

Commit

Permalink
fix Can't click text to select checkbox in properties jdorn#736
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed Apr 30, 2020
1 parent 376ded0 commit 6cbcdc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/themes/bootstrap4.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ export class bootstrap4Theme extends AbstractTheme {
}
}

console.log(label.innerText)
const unique = label.innerText
label.setAttribute('for', unique)
input.setAttribute('id', unique)

check.appendChild(input)
check.appendChild(label)
if (infoText) check.appendChild(infoText)
Expand Down

0 comments on commit 6cbcdc0

Please sign in to comment.