Reorder method

This commit is contained in:
Jorge Manrubia
2025-06-05 09:14:51 +02:00
parent e8322afb59
commit 8a63bac3c0
@@ -15,17 +15,17 @@ export default class extends Controller {
this.#index = target.value
}
set #index(index) {
this.fieldTarget.style.setProperty("--knob-index", `${index}`);
this.sliderTarget.value = index
}
get #selectedOption() {
return this.optionTargets.find(option => {
return option.checked
})
}
set #index(index) {
this.fieldTarget.style.setProperty("--knob-index", `${index}`);
this.sliderTarget.value = index
}
set #value(index) {
this.#optionForIndex(index).checked = true
}