Reorder method
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user