File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-currency-input" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " React component for inputing currency amounts" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const CurrencyInput = React.createClass({
49
49
* @returns {{ maskedValue: {String}, value: {Number}, customProps: {Object} } }
50
50
*/
51
51
prepareProps ( props ) {
52
- let customProps = Object . assign ( { } , props ) ; //polyfilled for environments that do not support it.
52
+ let customProps = JSON . parse ( JSON . stringify ( props ) ) ; //not as clean, but better support
53
53
delete customProps . onChange ;
54
54
delete customProps . value ;
55
55
delete customProps . decimalSeparator ;
You can’t perform that action at this time.
0 commit comments