Submit social housing lettings and sales data (CORE)
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.
|
|
|
import { Controller } from "@hotwired/stimulus"
|
|
|
|
import accessibleAutocomplete from "accessible-autocomplete"
|
|
|
|
import 'accessible-autocomplete/dist/accessible-autocomplete.min.css'
|
|
|
|
|
|
|
|
export default class extends Controller {
|
|
|
|
connect() {
|
|
|
|
if(document.querySelectorAll(".autocomplete__input").length == 0){
|
|
|
|
accessibleAutocomplete.enhanceSelectElement({
|
|
|
|
defaultValue: '',
|
|
|
|
selectElement: this.element
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|