File tree 1 file changed +18
-21
lines changed
1 file changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -32,27 +32,6 @@ var Datetime = createClass({
32
32
closeOnTab : TYPES . bool
33
33
} ,
34
34
35
- getDefaultProps : function ( ) {
36
- var nof = function ( ) { } ;
37
- return {
38
- className : '' ,
39
- defaultValue : '' ,
40
- inputProps : { } ,
41
- input : true ,
42
- onFocus : nof ,
43
- onBlur : nof ,
44
- onChange : nof ,
45
- onViewModeChange : nof ,
46
- timeFormat : true ,
47
- timeConstraints : { } ,
48
- dateFormat : true ,
49
- strictParsing : true ,
50
- closeOnSelect : false ,
51
- closeOnTab : true ,
52
- utc : false
53
- } ;
54
- } ,
55
-
56
35
getInitialState : function ( ) {
57
36
var state = this . getStateFromProps ( this . props ) ;
58
37
@@ -448,6 +427,24 @@ var Datetime = createClass({
448
427
}
449
428
} ) ;
450
429
430
+ Datetime . defaultProps = {
431
+ className : '' ,
432
+ defaultValue : '' ,
433
+ inputProps : { } ,
434
+ input : true ,
435
+ onFocus : function ( ) { } ,
436
+ onBlur : function ( ) { } ,
437
+ onChange : function ( ) { } ,
438
+ onViewModeChange : function ( ) { } ,
439
+ timeFormat : true ,
440
+ timeConstraints : { } ,
441
+ dateFormat : true ,
442
+ strictParsing : true ,
443
+ closeOnSelect : false ,
444
+ closeOnTab : true ,
445
+ utc : false
446
+ } ;
447
+
451
448
// Make moment accessible through the Datetime class
452
449
Datetime . moment = moment ;
453
450
You can’t perform that action at this time.
0 commit comments