Skip to content

Commit 6cbcdc0

Browse files
committed
fix Can't click text to select checkbox in properties jdorn#736
1 parent 376ded0 commit 6cbcdc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/themes/bootstrap4.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ export class bootstrap4Theme extends AbstractTheme {
126126
}
127127
}
128128

129+
console.log(label.innerText)
130+
const unique = label.innerText
131+
label.setAttribute('for', unique)
132+
input.setAttribute('id', unique)
133+
129134
check.appendChild(input)
130135
check.appendChild(label)
131136
if (infoText) check.appendChild(infoText)

0 commit comments

Comments
 (0)