You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
358 B
14 lines
358 B
3 years ago
|
import { Controller } from "@hotwired/stimulus"
|
||
|
import accessibleAutocomplete from "accessible-autocomplete"
|
||
|
import 'accessible-autocomplete/dist/accessible-autocomplete.min.css'
|
||
|
|
||
|
export default class extends Controller {
|
||
3 years ago
|
|
||
3 years ago
|
connect() {
|
||
3 years ago
|
accessibleAutocomplete.enhanceSelectElement({
|
||
|
defaultValue: '',
|
||
3 years ago
|
selectElement: this.element
|
||
3 years ago
|
})
|
||
3 years ago
|
}
|
||
|
}
|