Skip to content

Commit b0bb383

Browse files
author
Wojciech Maj
committed
Add disableClock documentation
1 parent f09efe6 commit b0bb383

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Displays an input field complete with custom inputs, native input, a calendar, a
9393
|className|Defines class name(s) that will be added along with "react-datetime-picker" to the main React-DateTime-Picker `<div>` element.|<ul><li>String: `"class1 class2"`</li><li>Array of strings: `["class1", "class2 class3"]`</li></ul>|
9494
|clearIcon|Defines the content of the clear button.|<ul><li>String: `"Clear"`</li><li>React element: `<ClearIcon />`</li></ul>|
9595
|disabled|Defines whether the date picker should be disabled. Defaults to false.|`true`|
96+
|disableClock|Defines whether the clock should be disabled. Defaults to false.|`true`|
9697
|isCalendarOpen|Defines whether the calendar should be opened. Defaults to false.|`true`|
9798
|isClockOpen|Defines whether the clock should be opened. Defaults to false.|`true`|
9899
|locale|Defines which locale should be used by the datetime picker and the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). Defaults to user's browser settings.|`"hu-HU"`|

src/DateTimePicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default class DateTimePicker extends PureComponent {
248248
}
249249

250250
renderClock() {
251-
const { disableClock} = this.props;
251+
const { disableClock } = this.props;
252252
const { isClockOpen } = this.state;
253253

254254
if (isClockOpen === null || disableClock) {

0 commit comments

Comments
 (0)