Skip to content

Commit 55b1630

Browse files
committed
Improve documentation on default values when building date for onChange callback
1 parent 4b1f814 commit 55b1630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Displays an input field complete with custom inputs, native input, a calendar, a
112112
| nativeInputAriaLabel | `aria-label` for the native datetime input. | n/a | `"Date"` |
113113
| onCalendarClose | Function called when the calendar closes. | n/a | `() => alert('Calendar closed')` |
114114
| onCalendarOpen | Function called when the calendar opens. | n/a | `() => alert('Calendar opened')` |
115-
| onChange | Function called when the user clicks an item on the most detailed view available. | n/a | `(value) => alert('New date is: ', value)` |
115+
| onChange | Function called when the user picks a valid datetime. If any of the fields were excluded using custom `format`, `new Date(y, 0, 1, 0, 0, 0)`, where `y` is the current year, is going to serve as a "base". | n/a | `(value) => alert('New date is: ', value)` |
116116
| onClockClose | Function called when the clock closes. | n/a | `() => alert('Clock closed')` |
117117
| onClockOpen | Function called when the clock opens. | n/a | `() => alert('Clock opened')` |
118118
| openWidgetsOnFocus | Whether to open the widgets on input focus. | `true` | `false` |

0 commit comments

Comments
 (0)