There was an error while loading. Please reload this page.
1 parent f12a105 commit 1fc6042Copy full SHA for 1fc6042
src/coffee/DateTimeField.jsx.coffee
@@ -75,10 +75,12 @@ DateTimeField = React.createClass(
75
@setState viewDate: @state.viewDate.clone().year(year)
76
77
addMinute: ->
78
- @setState selectedDate: @state.selectedDate.clone().add(1, "minutes")
+ @setState selectedDate: @state.selectedDate.clone().add(1, "minutes"), ->
79
+ @props.onChange(@state.selectedDate.format(@props.format))
80
81
addHour: ->
- @setState selectedDate: @state.selectedDate.clone().add(1, "hours")
82
+ @setState selectedDate: @state.selectedDate.clone().add(1, "hours"), ->
83
84
85
addMonth: ->
86
@setState viewDate: @state.viewDate.add(1, "months")
0 commit comments