Skip to content

Commit

Permalink
Fix #2398: Broken Client Side Validation for filtering select
Browse files Browse the repository at this point in the history
  • Loading branch information
williamherry committed Jul 21, 2017
1 parent 19a1a5e commit fca6c3f
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 fca6c3f

Please sign in to comment.