Skip to content

Commit

Permalink
Don't manage "required" attribute in PriorityInput
Browse files Browse the repository at this point in the history
Don't overwrite the `#has_required?` method forcing any priority input
select elements to not include the attribute. Let the inherited classes,
and most likely, the html5 component manage that attribute.
  • Loading branch information
mcountis committed Mar 28, 2019
1 parent 91ca1e0 commit 8b38b20
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/simple_form/inputs/priority_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ def input_priority

protected

def has_required?
false
end

def skip_include_blank?
super || input_priority.present?
end
Expand Down

0 comments on commit 8b38b20

Please sign in to comment.