aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/module
diff options
context:
space:
mode:
Diffstat (limited to 'src/module')
-rw-r--r--src/module/Header.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/module/Header.jsx b/src/module/Header.jsx
index 9a048dc..33dec43 100644
--- a/src/module/Header.jsx
+++ b/src/module/Header.jsx
@@ -107,7 +107,12 @@ const Header = React.createClass({
107 originalValue.getMinutes() !== value.getMinutes() || 107 originalValue.getMinutes() !== value.getMinutes() ||
108 originalValue.getSeconds() !== value.getSeconds() 108 originalValue.getSeconds() !== value.getSeconds()
109 ) { 109 ) {
110 onChange(value); 110 // keep other fields for rc-calendar
111 const changedValue = originalValue.clone();
112 changedValue.setHourOfDay(value.getHourOfDay());
113 changedValue.setMinutes(value.getMinutes());
114 changedValue.setSeconds(value.getSeconds());
115 onChange(changedValue);
111 } 116 }
112 } else if (originalValue !== value) { 117 } else if (originalValue !== value) {
113 onChange(value); 118 onChange(value);