Skip to content

Commit c1a2cad

Browse files
committed
Remove firstOptionSelectionMode option from Combobox initialization
1 parent 399729d commit c1a2cad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/generators/css_zero/add/templates/app/javascript/controllers/command_controller.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class extends Controller {
1111
}
1212

1313
connect() {
14-
this.combobox = new Combobox(this.inputTarget, this.listTarget, this.#options)
14+
this.combobox = new Combobox(this.inputTarget, this.listTarget)
1515
this.combobox.start()
1616
}
1717

@@ -55,8 +55,4 @@ export default class extends Controller {
5555
this.listTarget.classList.remove(this.activeClass)
5656
this.combobox.resetSelection()
5757
}
58-
59-
get #options() {
60-
return { firstOptionSelectionMode: "selected" }
61-
}
6258
}

0 commit comments

Comments
 (0)