Skip to content

Commit

Permalink
Use number_field for Field::Number (#1063)
Browse files Browse the repository at this point in the history
Fixes #1021
  • Loading branch information
Niklas Häusele authored Oct 5, 2020
1 parent bd226d1 commit 74cb093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/fields/number/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ By default, the input is a text field.
<%= f.label field.attribute %>
</div>
<div class="field-unit__field">
<%= f.text_field field.attribute %>
<%= f.number_field field.attribute, step: "any" %>
</div>

0 comments on commit 74cb093

Please sign in to comment.