Modal Dialog
Show the calendar in a modal dialog with @pglejzer/datepicker-ui.
Modal
#ui.displayMode: "modal" opens a dialog with a headline, the calendar and the Cancel and OK buttons. Nothing is written to the input until the user confirms. The modal always shows one month.
Start on the text input view
#ui.initialView: "input" opens the modal on the text field instead of the grid. A button switches between the two views, and ui.viewSwitch controls it.
Docs: Display Modes · Typed Input