Skip to content

Commit d25007f

Browse files
committed
ensure text input in filter forms are cleared when reset button clicked
1 parent 07c04e4 commit d25007f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/assets/javascripts/fae/form/_filtering.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ Fae.form.filtering = {
103103
var $this = $(this);
104104
ev.preventDefault();
105105

106-
// reset params and form selects
106+
// reset params and form selects/inputs
107107
_this.fry.merge({ page: '' }, true);
108108
$('#filter_search').val('');
109+
$this.closest('form').find('.table-filter-group.text-input input').val('');
109110
$this.closest('form').find('select').val('').trigger('chosen:updated');
110111
$this.hide();
111112
})

0 commit comments

Comments
 (0)