You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before it would just open the calendar on focus, and this would cause
problems for users when they close the calendar and want to open it
again. Before this change the user would have to trigger an onBlur by
clicking somewhere else before triggering onFocus again to open the
calendar again.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ render: function() {
55
55
|**onViewModeChange**|`function`| empty function | Callback trigger when the view mode changes. The callback receives the selected view mode string (`years`, `months`, `days` or `time`) as only parameter.|
56
56
|**viewMode**|`string` or `number`|`'days'`| The default view to display when the picker is shown (`'years'`, `'months'`, `'days'`, `'time'`). |
57
57
|**className**|`string` or `string array`|`''`| Extra class name for the outermost markup element. |
58
-
|**inputProps**|`object`|`undefined`| Defines additional attributes for the input element of the component. For example: `placeholder`, `disabled`, `required`, `name` and `className` (`className`*sets* the class attribute for the input element). |
58
+
|**inputProps**|`object`|`undefined`| Defines additional attributes for the input element of the component. For example: `onClick`, `placeholder`, `disabled`, `required`, `name` and `className` (`className`*sets* the class attribute for the input element). |
59
59
|**isValidDate**|`function`|`() => true`| Define the dates that can be selected. The function receives `(currentDate, selectedDate)` and shall return a `true` or `false` whether the `currentDate` is valid or not. See [selectable dates](#selectable-dates).|
60
60
|**renderDay**|`function`|`DOM.td(day)`| Customize the way that the days are shown in the daypicker. The accepted function has the `selectedDate`, the current date and the default calculated `props` for the cell, and must return a React component. See [appearance customization](#customize-the-appearance). |
61
61
|**renderMonth**|`function`|`DOM.td(month)`| Customize the way that the months are shown in the monthpicker. The accepted function has the `selectedDate`, the current date and the default calculated `props` for the cell, the `month` and the `year` to be shown, and must return a React component. See [appearance customization](#customize-the-appearance). |
0 commit comments