Browse Source
* Filter values correctly * Remove filter value if hidden * Return empty string rather than nil for accessible autocomplete * Additional test for accessible automcomplete defaultingpull/619/head
10 changed files with 81 additions and 7 deletions
@ -0,0 +1,13 @@
|
||||
import { Controller } from "@hotwired/stimulus" |
||||
|
||||
export default class extends Controller { |
||||
initialize() { |
||||
this.clearIfHidden() |
||||
} |
||||
|
||||
clearIfHidden() { |
||||
if(this.element.style["display"] == "none") { |
||||
this.element.value = "" |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue