diff options
author | Levi Lansing <helives@gmail.com> | 2017-09-27 23:20:55 -0400 |
---|---|---|
committer | Levi Lansing <helives@gmail.com> | 2017-09-27 23:20:55 -0400 |
commit | d18ecfb67877d8bdfc54e47a214d3afab52b7bda (patch) | |
tree | 96a851037af8cc5c220ba4f3ba37a9b9cbc5b1b6 /src/Panel.jsx | |
parent | 35d5ed7815f4707c79565a45261ffadc21d604be (diff) | |
download | time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.gz time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.tar.zst time-picker-d18ecfb67877d8bdfc54e47a214d3afab52b7bda.zip |
add focusOnOpen option (#61)
Diffstat (limited to 'src/Panel.jsx')
-rw-r--r-- | src/Panel.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Panel.jsx b/src/Panel.jsx index 1953ad4..deeba52 100644 --- a/src/Panel.jsx +++ b/src/Panel.jsx | |||
@@ -40,6 +40,7 @@ class Panel extends Component { | |||
40 | onClear: PropTypes.func, | 40 | onClear: PropTypes.func, |
41 | use12Hours: PropTypes.bool, | 41 | use12Hours: PropTypes.bool, |
42 | addon: PropTypes.func, | 42 | addon: PropTypes.func, |
43 | focusOnOpen: PropTypes.bool, | ||
43 | }; | 44 | }; |
44 | 45 | ||
45 | static defaultProps = { | 46 | static defaultProps = { |
@@ -89,7 +90,7 @@ class Panel extends Component { | |||
89 | const { | 90 | const { |
90 | prefixCls, className, placeholder, disabledHours, disabledMinutes, | 91 | prefixCls, className, placeholder, disabledHours, disabledMinutes, |
91 | disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond, | 92 | disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond, |
92 | format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, | 93 | format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen, |
93 | } = this.props; | 94 | } = this.props; |
94 | const { | 95 | const { |
95 | value, currentSelectPanel, | 96 | value, currentSelectPanel, |
@@ -122,6 +123,7 @@ class Panel extends Component { | |||
122 | onChange={this.onChange} | 123 | onChange={this.onChange} |
123 | onClear={onClear} | 124 | onClear={onClear} |
124 | allowEmpty={allowEmpty} | 125 | allowEmpty={allowEmpty} |
126 | focusOnOpen={focusOnOpen} | ||
125 | /> | 127 | /> |
126 | <Combobox | 128 | <Combobox |
127 | prefixCls={prefixCls} | 129 | prefixCls={prefixCls} |