File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import NumberFormatInput from '../lib ' ;
1+ import NumberFormatInput from '../src ' ;
22import React , { Component , PropTypes } from 'react' ;
33
44const simpleFormat = new Intl . NumberFormat ( 'en-US' ) ;
Original file line number Diff line number Diff line change @@ -65,21 +65,21 @@ NumberFormatInput.PropTypes = {
6565} ;
6666
6767NumberFormatInput . defaultProps = {
68- value : 0 ,
68+ allowNullValue : false ,
69+ maxlength : undefined ,
6970 numberFormat : new Intl . NumberFormat ( 'en-US' , { } ) ,
7071 onChange : ( ) => { } ,
71- maxlength : undefined ,
72- allowNull : false ,
72+ value : 0 ,
7373} ;
7474
7575NumberFormatInput . propTypes = {
76+ allowNullValue : PropTypes . bool ,
7677 maxlength : PropTypes . number ,
77- value : PropTypes . number ,
78- onChange : PropTypes . func ,
79-
8078 numberFormat : PropTypes . shape ( {
8179 format : PropTypes . func . isRequired ,
8280 resolvedOptions : PropTypes . func . isRequired ,
8381 } ) ,
82+ onChange : PropTypes . func ,
83+ value : PropTypes . number ,
8484} ;
8585
You can’t perform that action at this time.
0 commit comments