Skip to content

Commit

Permalink
Fix incorrect release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yadav committed Aug 6, 2019
1 parent 7496fe1 commit d180af9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions dist/react-number-format.es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* react-number-format - 4.0.8
* react-number-format - 4.1.1
* Author : Sudhanshu Yadav
* Copyright (c) 2016, 2019 to Sudhanshu Yadav, released under the MIT license.
* https://github.com/s-yadav/react-number-format
Expand Down Expand Up @@ -1298,7 +1298,9 @@ function (_React$Component) {
}), value);
} else if (customInput) {
var CustomInput = customInput;
return React.createElement(CustomInput, inputProps);
return React.createElement(CustomInput, _extends({}, inputProps, {
ref: getInputRef
}));
}

return React.createElement("input", _extends({}, inputProps, {
Expand Down
6 changes: 4 additions & 2 deletions dist/react-number-format.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* react-number-format - 4.0.8
* react-number-format - 4.1.1
* Author : Sudhanshu Yadav
* Copyright (c) 2016, 2019 to Sudhanshu Yadav, released under the MIT license.
* https://github.com/s-yadav/react-number-format
Expand Down Expand Up @@ -1304,7 +1304,9 @@
}), value);
} else if (customInput) {
var CustomInput = customInput;
return React.createElement(CustomInput, inputProps);
return React.createElement(CustomInput, _extends({}, inputProps, {
ref: getInputRef
}));
}

return React.createElement("input", _extends({}, inputProps, {
Expand Down
2 changes: 1 addition & 1 deletion dist/react-number-format.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lib/number_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,9 @@ function (_React$Component) {
}), value);
} else if (customInput) {
var CustomInput = customInput;
return _react.default.createElement(CustomInput, inputProps);
return _react.default.createElement(CustomInput, _extends({}, inputProps, {
ref: getInputRef
}));
}

return _react.default.createElement("input", _extends({}, inputProps, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-number-format",
"description": "React component to format number in an input or as a text.",
"version": "4.1.0",
"version": "4.1.1",
"main": "lib/number_format.js",
"module": "dist/react-number-format.es.js",
"author": "Sudhanshu Yadav",
Expand Down

0 comments on commit d180af9

Please sign in to comment.