Enable to set step attribute for number input
angular-schema-form doesn't apply "step" attribute for number type input. To increase the number properly in the form by form control, "step" attribute should be applied to number type input. e.g.) if set 0.1 to step, form control will be increase the number as 0.1->0.2->0.3... or decrease it as 1->0.9->0.8... . This patch fixes it. Change-Id: Ie837b605f281001ae209e743ea50b25a091dd752 Closes-Bug: #1698086
This commit is contained in:
parent
ed6fce9b86
commit
bf50752a16
|
@ -8,7 +8,7 @@
|
|||
<input ng-if="!form.fieldAddonLeft && !form.fieldAddonRight"
|
||||
ng-show="form.key"
|
||||
type="{$::form.type$}"
|
||||
step="any"
|
||||
step="{$::form.step$}"
|
||||
sf-changed="form"
|
||||
placeholder="{$::form.placeholder$}"
|
||||
class="form-control {$::form.fieldHtmlClass$}"
|
||||
|
@ -26,7 +26,7 @@
|
|||
ng-bind-html="form.fieldAddonLeft"></span>
|
||||
<input ng-show="form.key"
|
||||
type="{$::form.type$}"
|
||||
step="any"
|
||||
step="{$::form.step$}"
|
||||
sf-changed="form"
|
||||
placeholder="{$::form.placeholder$}"
|
||||
class="form-control {$::form.fieldHtmlClass$}"
|
||||
|
|
Loading…
Reference in New Issue