Skip to content

Commit 3c30c0f

Browse files
authored
[ISSUE-276] Fix React component autofoucs js error (#307)
1 parent 15ae1a4 commit 3c30c0f

9 files changed

+11
-11
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"form",
99
"input"
1010
],
11-
"version": "1.1.2",
11+
"version": "1.1.3",
1212
"author": {
1313
"name": "Max Huang",
1414
"email": "[email protected]",

dist/cleave-angular.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cleave-react-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ return /******/ (function(modules) { // webpackBootstrap
244244
}
245245

246246
if (pps.numeral) {
247-
rawValue = pps.numeralFormatter.getRawValue(rawValue);
247+
rawValue = pps.numeralFormatter ? pps.numeralFormatter.getRawValue(rawValue) : '';
248248
} else {
249249
rawValue = Util.stripDelimiters(rawValue, pps.delimiter, pps.delimiters);
250250
}

dist/cleave-react-node.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cleave-react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ return /******/ (function(modules) { // webpackBootstrap
244244
}
245245

246246
if (pps.numeral) {
247-
rawValue = pps.numeralFormatter.getRawValue(rawValue);
247+
rawValue = pps.numeralFormatter ? pps.numeralFormatter.getRawValue(rawValue) : '';
248248
} else {
249249
rawValue = Util.stripDelimiters(rawValue, pps.delimiter, pps.delimiters);
250250
}

dist/cleave-react.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cleave.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"form",
1111
"input"
1212
],
13-
"version": "1.1.2",
13+
"version": "1.1.3",
1414
"author": {
1515
"name": "Max Huang",
1616
"url": "http://github.com/nosir",

src/Cleave.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var cleaveReactClass = CreateReactClass({
186186
}
187187

188188
if (pps.numeral) {
189-
rawValue = pps.numeralFormatter.getRawValue(rawValue);
189+
rawValue = pps.numeralFormatter ? pps.numeralFormatter.getRawValue(rawValue) : '';
190190
} else {
191191
rawValue = Util.stripDelimiters(rawValue, pps.delimiter, pps.delimiters);
192192
}

0 commit comments

Comments
 (0)