diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/TimePicker.jsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 0b985dd..271515d 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -42,6 +42,8 @@ export default class Picker extends Component { | |||
42 | onChange: PropTypes.func, | 42 | onChange: PropTypes.func, |
43 | onOpen: PropTypes.func, | 43 | onOpen: PropTypes.func, |
44 | onClose: PropTypes.func, | 44 | onClose: PropTypes.func, |
45 | onFocus: PropTypes.func, | ||
46 | onBlur: PropTypes.func, | ||
45 | addon: PropTypes.func, | 47 | addon: PropTypes.func, |
46 | name: PropTypes.string, | 48 | name: PropTypes.string, |
47 | autoComplete: PropTypes.string, | 49 | autoComplete: PropTypes.string, |
@@ -70,6 +72,8 @@ export default class Picker extends Component { | |||
70 | onChange: noop, | 72 | onChange: noop, |
71 | onOpen: noop, | 73 | onOpen: noop, |
72 | onClose: noop, | 74 | onClose: noop, |
75 | onFocus: noop, | ||
76 | onBlur: noop, | ||
73 | addon: noop, | 77 | addon: noop, |
74 | use12Hours: false, | 78 | use12Hours: false, |
75 | onKeyDown: noop, | 79 | onKeyDown: noop, |
@@ -234,6 +238,7 @@ export default class Picker extends Component { | |||
234 | const { | 238 | const { |
235 | prefixCls, placeholder, placement, align, | 239 | prefixCls, placeholder, placement, align, |
236 | disabled, transitionName, style, className, getPopupContainer, name, autoComplete, | 240 | disabled, transitionName, style, className, getPopupContainer, name, autoComplete, |
241 | onFocus, onBlur, | ||
237 | } = this.props; | 242 | } = this.props; |
238 | const { open, value } = this.state; | 243 | const { open, value } = this.state; |
239 | const popupClassName = this.getPopupClassName(); | 244 | const popupClassName = this.getPopupClassName(); |
@@ -263,6 +268,8 @@ export default class Picker extends Component { | |||
263 | onKeyDown={this.onKeyDown} | 268 | onKeyDown={this.onKeyDown} |
264 | disabled={disabled} value={value && value.format(this.getFormat()) || ''} | 269 | disabled={disabled} value={value && value.format(this.getFormat()) || ''} |
265 | autoComplete={autoComplete} | 270 | autoComplete={autoComplete} |
271 | onFocus={onFocus} | ||
272 | onBlur={onBlur} | ||
266 | /> | 273 | /> |
267 | <span className={`${prefixCls}-icon`}/> | 274 | <span className={`${prefixCls}-icon`}/> |
268 | </span> | 275 | </span> |