Skip to content

Commit

Permalink
No need to remove the value attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-jean authored and afcapel committed Mar 1, 2023
1 parent cbff576 commit bdb1753
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export default class Autocomplete extends Controller {
}

onInputChange = () => {
this.element.removeAttribute("value")
if (this.hasHiddenTarget) this.hiddenTarget.value = ""

const query = this.inputTarget.value.trim()
Expand Down

0 comments on commit bdb1753

Please sign in to comment.