Clear filters when dialog closes

This commit is contained in:
Andy Smith
2025-11-12 15:29:27 -06:00
parent 2415dadef5
commit 3615c07f7f
3 changed files with 7 additions and 1 deletions
@@ -44,6 +44,7 @@ export default class extends Controller {
this.dialogTarget.blur()
orient(this.dialogTarget, false)
limitHeightToViewport(this.dialogTarget, false)
this.dispatch("close")
}
closeOnClickOutside({ target }) {
@@ -20,4 +20,9 @@ export default class extends Controller {
this.dispatch("changed")
}
clearInput() {
if (!this.hasInputTarget) return
this.inputTarget.value = ""
}
}