Skip to content

Commit e2f3879

Browse files
author
Loz Jackson
authored
Support allowLeadingZeroes (#18)
* update package.json update ember-text-mask to `^2.0.0` update text-mask-addons to `v3.2.0` * update number-mask component Support `allowLeadingZeroes`.
1 parent aec6b1f commit e2f3879

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

addon/components/number-mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ function _createNumberMask(...args) {
1212

1313
export default MaskedInputComponent.extend({
1414
createNumberMask,
15-
mask: _createNumberMask('prefix', 'suffix', 'includeThousandsSeparator', 'thousandsSeparatorSymbol', 'allowDecimal', 'decimalSymbol', 'decimalLimit', 'requireDecimal', 'allowNegative', 'integerLimit')
15+
mask: _createNumberMask('prefix', 'suffix', 'includeThousandsSeparator', 'thousandsSeparatorSymbol', 'allowDecimal', 'decimalSymbol', 'decimalLimit', 'requireDecimal', 'allowNegative', 'allowLeadingZeroes', 'integerLimit')
1616
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"dependencies": {
5757
"broccoli-merge-trees": "^1.1.4",
5858
"ember-cli-babel": "^5.1.6",
59-
"ember-text-mask": "^1.2.0",
60-
"text-mask-addons": "^3.1.0"
59+
"ember-text-mask": "^2.0.0",
60+
"text-mask-addons": "^3.2.0"
6161
},
6262
"ember-addon": {
6363
"configPath": "tests/dummy/config"

0 commit comments

Comments
 (0)