aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 28857a0..da47ac4 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -41,6 +41,7 @@ const Picker = React.createClass({
41 onOpen: PropTypes.func, 41 onOpen: PropTypes.func,
42 onClose: PropTypes.func, 42 onClose: PropTypes.func,
43 addon: PropTypes.func, 43 addon: PropTypes.func,
44 name: PropTypes.string,
44 }, 45 },
45 46
46 getDefaultProps() { 47 getDefaultProps() {
@@ -188,7 +189,7 @@ const Picker = React.createClass({
188 const { 189 const {
189 prefixCls, placeholder, placement, align, 190 prefixCls, placeholder, placement, align,
190 disabled, transitionName, style, className, showHour, 191 disabled, transitionName, style, className, showHour,
191 showMinute, showSecond, getPopupContainer, 192 showMinute, showSecond, getPopupContainer, name,
192 } = this.props; 193 } = this.props;
193 const { open, value } = this.state; 194 const { open, value } = this.state;
194 let popupClassName; 195 let popupClassName;
@@ -213,7 +214,10 @@ const Picker = React.createClass({
213 <span className={`${prefixCls} ${className}`} style={style}> 214 <span className={`${prefixCls} ${className}`} style={style}>
214 <input 215 <input
215 className={`${prefixCls}-input`} 216 className={`${prefixCls}-input`}
216 ref={this.saveInputRef} type="text" placeholder={placeholder} 217 ref={this.saveInputRef}
218 type="text"
219 placeholder={placeholder}
220 name={name}
217 readOnly 221 readOnly
218 onKeyDown={this.onKeyDown} 222 onKeyDown={this.onKeyDown}
219 disabled={disabled} value={value && value.format(this.getFormat()) || ''} 223 disabled={disabled} value={value && value.format(this.getFormat()) || ''}