Skip to content

Commit

Permalink
Merge pull request #3122 from bolt/bugfix/fix-step-float
Browse files Browse the repository at this point in the history
Update float field so it uses step='any' by default
  • Loading branch information
bobdenotter authored Mar 17, 2022
2 parents ddaadc9 + 7ab2374 commit 2d02f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/app/editor/Components/Number.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
id: String,
value: String,
name: String,
step: Number,
step: Number | String,
type: String,
disabled: Boolean,
required: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/fields/number.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% elseif not step|default %}
{# default step values #}
{% if mode == 'float' %}
{% set step = 0.5 %}
{% set step = "'any'" %}
{% elseif mode == 'integer' %}
{% set step = 1 %}
{% else %}
Expand Down

0 comments on commit 2d02f5d

Please sign in to comment.