Skip to content

Commit

Permalink
autoOk added to docs, missing comma, const
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfoo committed Oct 21, 2015
1 parent d0ed1db commit fd5a598
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/src/app/components/pages/components/time-picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ let TimePickerPage = React.createClass({
{
name: 'Props',
infoArray: [
{
name: 'autoOk',
type: 'boolean',
header: 'default: false',
desc: 'If true, automatically accept and close the picker on set minutes.',
},
{
name: 'defaultTime',
type: 'date object',
Expand Down
2 changes: 1 addition & 1 deletion src/time-picker/time-picker-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const TimePickerDialog = React.createClass({
onTouchTap={this._handleOKTouchTap} />,
];

let onClockChangeMinutes = (autoOk === true ? this._handleOKTouchTap : undefined);
const onClockChangeMinutes = (autoOk === true ? this._handleOKTouchTap : undefined);

return (
<Dialog {...other}
Expand Down

0 comments on commit fd5a598

Please sign in to comment.