aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/module
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-02-02 14:47:20 +0800
committeryiminghe <yiminghe@gmail.com>2016-02-02 14:47:20 +0800
commit2ddd3f1837470a5305ca788d8b45fe63e68e5cb2 (patch)
tree0cf04973a1150fe14e026d4dd8eb5c73c09a2dca /src/module
parent6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c (diff)
downloadtime-picker-2ddd3f1837470a5305ca788d8b45fe63e68e5cb2.tar.gz
time-picker-2ddd3f1837470a5305ca788d8b45fe63e68e5cb2.tar.zst
time-picker-2ddd3f1837470a5305ca788d8b45fe63e68e5cb2.zip
keep date stable1.1.1
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);