File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,15 +327,15 @@ export default class Datetime extends React.Component {
327327 let updateOnView = this . getUpdateOn ( this . getFormat ( "date" ) )
328328 let viewDate = this . state . viewDate . clone ( )
329329
330- // Set the value into day/month/year
331- viewDate [ this . viewToMethod [ currentView ] ] ( parseInt ( e . target . getAttribute ( "data-value" ) , 10 ) )
332-
333330 // Need to set month and year will for days view (prev/next month)
334331 if ( currentView === "days" ) {
335332 viewDate . month ( parseInt ( e . target . getAttribute ( "data-month" ) , 10 ) )
336333 viewDate . year ( parseInt ( e . target . getAttribute ( "data-year" ) , 10 ) )
337334 }
338335
336+ // Set the value into day/month/year
337+ viewDate [ this . viewToMethod [ currentView ] ] ( parseInt ( e . target . getAttribute ( "data-value" ) , 10 ) )
338+
339339 let update = { viewDate : viewDate }
340340 if ( currentView === updateOnView ) {
341341 update . selectedDate = viewDate . clone ( )
You can’t perform that action at this time.
0 commit comments