Skip to content

Commit

Permalink
Merge pull request #614 from wearefine/hot-fix-filter-inputs
Browse files Browse the repository at this point in the history
ensure text input in filter forms are cleared when reset button clicked
  • Loading branch information
jasonfine authored Jul 12, 2024
2 parents 07c04e4 + d25007f commit b2cef8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/fae/form/_filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ Fae.form.filtering = {
var $this = $(this);
ev.preventDefault();

// reset params and form selects
// reset params and form selects/inputs
_this.fry.merge({ page: '' }, true);
$('#filter_search').val('');
$this.closest('form').find('.table-filter-group.text-input input').val('');
$this.closest('form').find('select').val('').trigger('chosen:updated');
$this.hide();
})
Expand Down

0 comments on commit b2cef8d

Please sign in to comment.