File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-bootstrap-datetimepicker" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"description" : " A bootstrap datetime picker component for React.js" ,
5
5
"scripts" : {
6
6
"build" : " ./node_modules/.bin/grunt build" ,
Original file line number Diff line number Diff line change @@ -109,14 +109,14 @@ DateTimeField = React.createClass({
109
109
return this . setState ( {
110
110
selectedDate : this . state . selectedDate . clone ( ) . add ( 1 , "minutes" )
111
111
} , function ( ) {
112
- this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
112
+ return this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
113
113
} ) ;
114
114
} ,
115
115
addHour : function ( ) {
116
116
return this . setState ( {
117
117
selectedDate : this . state . selectedDate . clone ( ) . add ( 1 , "hours" )
118
118
} , function ( ) {
119
- this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
119
+ return this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
120
120
} ) ;
121
121
} ,
122
122
addMonth : function ( ) {
@@ -138,14 +138,14 @@ DateTimeField = React.createClass({
138
138
return this . setState ( {
139
139
selectedDate : this . state . selectedDate . clone ( ) . subtract ( 1 , "minutes" )
140
140
} , function ( ) {
141
- this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
141
+ return this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
142
142
} ) ;
143
143
} ,
144
144
subtractHour : function ( ) {
145
145
return this . setState ( {
146
146
selectedDate : this . state . selectedDate . clone ( ) . subtract ( 1 , "hours" )
147
147
} , function ( ) {
148
- this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
148
+ return this . props . onChange ( this . state . selectedDate . format ( this . props . format ) ) ;
149
149
} ) ;
150
150
} ,
151
151
subtractMonth : function ( ) {
You can’t perform that action at this time.
0 commit comments