Skip to content

Commit

Permalink
Implement inputReadOnly for TimePicker (#9327)
Browse files Browse the repository at this point in the history
* Update package.json

* Document inputReadOnly

* Add inputReadOnly declaration.
  • Loading branch information
JesperWe authored and yesmeck committed Feb 11, 2018
1 parent 0df2efc commit 4a69446
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/time-picker/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import moment from 'moment';
| popupClassName | className of panel | string | '' |
| secondStep | interval between seconds in picker | number | 1 |
| use12Hours | display as 12 hours format, with default format `h:mm:ss a` | boolean | false |
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false |
| value | to set time | [moment](http://momentjs.com/) | - |
| onChange | a callback function, can be executed when the selected time is changing | function(time: moment, timeString: string): void | - |
| onOpenChange | a callback function which will be called while panel opening/closing | (open: boolean): void | - |
Expand Down
1 change: 1 addition & 0 deletions components/time-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface TimePickerProps {
minuteStep?: number;
secondStep?: number;
allowEmpty?: boolean;
inputReadOnly?: boolean;
clearText?: string;
defaultOpenValue?: moment.Moment;
popupClassName?: string;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"rc-switch": "~1.6.0",
"rc-table": "~6.1.0",
"rc-tabs": "~9.2.0",
"rc-time-picker": "~3.2.1",
"rc-time-picker": "~3.3.0",
"rc-tooltip": "~3.7.0",
"rc-tree": "~1.7.0",
"rc-tree-select": "~1.12.0",
Expand Down

0 comments on commit 4a69446

Please sign in to comment.