Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59d75d commit 45b75ddCopy full SHA for 45b75dd
src/autocomplete.ts
@@ -31,7 +31,7 @@ export default class Autocomplete {
31
this.combobox = new Combobox(input, results)
32
this.feedback = document.getElementById(`${this.results.id}-feedback`)
33
this.autoselectEnabled = autoselectEnabled
34
- this.clearButton = document.getElementById(`${this.input.id || this.input.getAttribute('name')}-clear`)
+ this.clearButton = document.getElementById(`${this.input.id || this.input.name}-clear`)
35
36
// check to see if there are any default options provided
37
this.clientOptions = results.querySelectorAll('[role=option]')
0 commit comments