Skip to content

Commit

Permalink
Merge pull request #2905 from williamherry/fix_client_side_validation…
Browse files Browse the repository at this point in the history
…_for_filtering_select

Fix #2398: Broken Client Side Validation for filtering select
  • Loading branch information
mshibuya committed Feb 13, 2018
2 parents e0c8ba2 + fca6c3f commit 401c9b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/javascripts/rails_admin/ra.filtering-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@
input.attr('placeholder', this.element.attr('placeholder'));
}

if (this.element.attr('required')) {
input.attr('required', this.element.attr('required'));
this.element.attr('required', false);
}

return input;
},

Expand Down

0 comments on commit 401c9b9

Please sign in to comment.