@@ -25,7 +25,7 @@ class TimeInput extends React.Component {
2525 defaultValue . setSeconds ( 0 )
2626 defaultValue . setMilliseconds ( 0 )
2727
28- const open = ! ! props . autoOpen
28+ const open = ! ! props . openOnMount
2929 const value = props . value || props . defaultValue || props . initialTime || defaultValue
3030
3131 this . state = {
@@ -84,9 +84,9 @@ class TimeInput extends React.Component {
8484 render ( ) {
8585 const {
8686 autoOk,
87- autoOpen, // eslint-disable-line
8887 cancelLabel,
8988 classes,
89+ ClockProps,
9090 defaultValue,
9191 disabled : disabledProp ,
9292 initialTime,
@@ -95,9 +95,9 @@ class TimeInput extends React.Component {
9595 mode,
9696 okLabel,
9797 onChange,
98- value : valueProp ,
99- ClockProps,
98+ openOnMount,
10099 TimePickerProps,
100+ value : valueProp ,
101101 ...other
102102 } = this . props
103103
@@ -142,10 +142,10 @@ class TimeInput extends React.Component {
142142TimeInput . propTypes = {
143143 /** If true, automatically accept and close the picker on set minutes. */
144144 autoOk : PropTypes . bool ,
145- /** If true, automatically opens the dialog when the component is mounted */
146- autoOpen : PropTypes . bool ,
147145 /** Override the label of the cancel button. */
148146 cancelLabel : PropTypes . string ,
147+ /** Properties to pass down to the Clock component. */
148+ ClockProps : PropTypes . object ,
149149 /** This default value overrides initialTime and placeholder. */
150150 defaultValue : PropTypes . instanceOf ( Date ) ,
151151 /** The default value for the time picker. */
@@ -160,12 +160,12 @@ TimeInput.propTypes = {
160160 okLabel : PropTypes . string ,
161161 /** Callback that is called with the new date (as Date instance) when the value is changed. */
162162 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. */
166166 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 )
169169}
170170
171171TimeInput . defaultProps = {
0 commit comments