aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/module/Header.jsx7
2 files changed, 7 insertions, 2 deletions
diff --git a/package.json b/package.json
index f2edee8..1c56ac4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "rc-time-picker", 2 "name": "rc-time-picker",
3 "version": "1.1.0", 3 "version": "1.1.1",
4 "description": "React TimePicker", 4 "description": "React TimePicker",
5 "keywords": [ 5 "keywords": [
6 "react", 6 "react",
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);