Clear filters when dialog closes
This commit is contained in:
@@ -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 = ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user