Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 8042d2a

Browse files
author
Kamil Kisiela
committed
feat(ngModelAttrsManipulator): step attribute
Closes #592
1 parent f8bc547 commit 8042d2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/run/formlyNgModelAttrsManipulator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function addFormlyNgModelAttrsManipulator(formlyConfig, $interpolate) {
182182
const bothBooleanAndBound = ['required', 'disabled']
183183
const bothAttributeAndBound = ['pattern', 'minlength']
184184
const statementOnly = ['change', 'keydown', 'keyup', 'keypress', 'click', 'focus', 'blur']
185-
const attributeOnly = ['placeholder', 'min', 'max', 'tabindex', 'type']
185+
const attributeOnly = ['placeholder', 'min', 'max', 'step', 'tabindex', 'type']
186186
if (formlyConfig.extras.ngModelAttrsManipulatorPreferUnbound) {
187187
bothAttributeAndBound.push('maxlength')
188188
} else {

src/run/formlyNgModelAttrsManipulator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ describe('formlyNgModelAttrsManipulator', () => {
258258

259259
describe(`attributeOnly`, () => {
260260

261-
['placeholder', 'min', 'max', 'tabindex', 'type'].forEach(testAttribute)
261+
['placeholder', 'min', 'max', 'step', 'tabindex', 'type'].forEach(testAttribute)
262262

263263
function testAttribute(name) {
264264
it(`should be placed as an attribute if it is present in the templateOptions`, () => {

0 commit comments

Comments
 (0)