js/lcn/classes.js: link toggle label to checkbox
This commit is contained in:
parent
9298c1a674
commit
2b9185cd22
|
@ -401,7 +401,10 @@ globalThis.LCNToggleSetting = class LCNToggleSetting extends LCNSetting {
|
|||
const div = document.createElement("div")
|
||||
const chk = document.createElement("input")
|
||||
const txt = document.createElement("label")
|
||||
const id = `${this.#id}_input`
|
||||
txt.for = id
|
||||
txt.innerText = this.getLabel()
|
||||
chk.id = id
|
||||
chk.type = "checkbox"
|
||||
chk.checked = this.getValue()
|
||||
chk.addEventListener("click", e => {
|
||||
|
|
Loading…
Reference in New Issue