diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index a37fec2..26166f4 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -55,6 +55,7 @@ export default class Picker extends Component { | |||
55 | focusOnOpen: PropTypes.bool, | 55 | focusOnOpen: PropTypes.bool, |
56 | onKeyDown: PropTypes.func, | 56 | onKeyDown: PropTypes.func, |
57 | autoFocus: PropTypes.bool, | 57 | autoFocus: PropTypes.bool, |
58 | id: PropTypes.string, | ||
58 | }; | 59 | }; |
59 | 60 | ||
60 | static defaultProps = { | 61 | static defaultProps = { |
@@ -65,6 +66,7 @@ export default class Picker extends Component { | |||
65 | style: {}, | 66 | style: {}, |
66 | className: '', | 67 | className: '', |
67 | popupClassName: '', | 68 | popupClassName: '', |
69 | id: '', | ||
68 | align: {}, | 70 | align: {}, |
69 | defaultOpenValue: moment(), | 71 | defaultOpenValue: moment(), |
70 | allowEmpty: true, | 72 | allowEmpty: true, |
@@ -253,7 +255,7 @@ export default class Picker extends Component { | |||
253 | 255 | ||
254 | render() { | 256 | render() { |
255 | const { | 257 | const { |
256 | prefixCls, placeholder, placement, align, | 258 | prefixCls, placeholder, placement, align, id, |
257 | disabled, transitionName, style, className, getPopupContainer, name, autoComplete, | 259 | disabled, transitionName, style, className, getPopupContainer, name, autoComplete, |
258 | onFocus, onBlur, autoFocus, inputReadOnly, | 260 | onFocus, onBlur, autoFocus, inputReadOnly, |
259 | } = this.props; | 261 | } = this.props; |
@@ -290,6 +292,7 @@ export default class Picker extends Component { | |||
290 | autoFocus={autoFocus} | 292 | autoFocus={autoFocus} |
291 | onChange={noop} | 293 | onChange={noop} |
292 | readOnly={!!inputReadOnly} | 294 | readOnly={!!inputReadOnly} |
295 | id={id} | ||
293 | /> | 296 | /> |
294 | <span className={`${prefixCls}-icon`}/> | 297 | <span className={`${prefixCls}-icon`}/> |
295 | </span> | 298 | </span> |