@@ -25,7 +25,7 @@ class TimeInput extends React.Component {
25
25
defaultValue . setSeconds ( 0 )
26
26
defaultValue . setMilliseconds ( 0 )
27
27
28
- const open = ! ! props . autoOpen
28
+ const open = ! ! props . openOnMount
29
29
const value = props . value || props . defaultValue || props . initialTime || defaultValue
30
30
31
31
this . state = {
@@ -84,9 +84,9 @@ class TimeInput extends React.Component {
84
84
render ( ) {
85
85
const {
86
86
autoOk,
87
- autoOpen, // eslint-disable-line
88
87
cancelLabel,
89
88
classes,
89
+ ClockProps,
90
90
defaultValue,
91
91
disabled : disabledProp ,
92
92
initialTime,
@@ -95,9 +95,9 @@ class TimeInput extends React.Component {
95
95
mode,
96
96
okLabel,
97
97
onChange,
98
- value : valueProp ,
99
- ClockProps,
98
+ openOnMount,
100
99
TimePickerProps,
100
+ value : valueProp ,
101
101
...other
102
102
} = this . props
103
103
@@ -142,10 +142,10 @@ class TimeInput extends React.Component {
142
142
TimeInput . propTypes = {
143
143
/** If true, automatically accept and close the picker on set minutes. */
144
144
autoOk : PropTypes . bool ,
145
- /** If true, automatically opens the dialog when the component is mounted */
146
- autoOpen : PropTypes . bool ,
147
145
/** Override the label of the cancel button. */
148
146
cancelLabel : PropTypes . string ,
147
+ /** Properties to pass down to the Clock component. */
148
+ ClockProps : PropTypes . object ,
149
149
/** This default value overrides initialTime and placeholder. */
150
150
defaultValue : PropTypes . instanceOf ( Date ) ,
151
151
/** The default value for the time picker. */
@@ -160,12 +160,12 @@ TimeInput.propTypes = {
160
160
okLabel : PropTypes . string ,
161
161
/** Callback that is called with the new date (as Date instance) when the value is changed. */
162
162
onChange : PropTypes . func ,
163
- /** The value of the time picker, for use in controlled mode . */
164
- value : PropTypes . instanceOf ( Date ) ,
165
- /** Properties to pass down to the TimePicker component */
163
+ /** If true, automatically opens the dialog when the component is mounted . */
164
+ openOnMount : PropTypes . bool ,
165
+ /** Properties to pass down to the TimePicker component. */
166
166
TimePickerProps : PropTypes . object ,
167
- /** Properties to pass down to the Clock component */
168
- ClockProps : PropTypes . object
167
+ /** The value of the time picker, for use in controlled mode. */
168
+ value : PropTypes . instanceOf ( Date )
169
169
}
170
170
171
171
TimeInput . defaultProps = {
0 commit comments