Skip to content

Commit cce0dcd

Browse files
committed
Update docs
1 parent ac42e57 commit cce0dcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Displays an input field complete with custom inputs, native input, and a calenda
110110
| onCalendarClose | Function called when the calendar closes. | n/a | `() => alert('Calendar closed')` |
111111
| onCalendarOpen | Function called when the calendar opens. | n/a | `() => alert('Calendar opened')` |
112112
| onChange | Function called when the user picks a valid date. 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)` |
113+
| onFocus | Function called when the focuses an input. | n/a | `(event) => alert('Focused input: ', event.target.name)` |
113114
| openCalendarOnFocus | Whether to open the calendar on input focus. | `true` | `false` |
114115
| portalContainer | Element to render the calendar in using portal. | n/a | `document.getElementById('my-div')` |
115116
| required | Whether date input should be required. | `false` | `true` |

0 commit comments

Comments
 (0)