diff --git a/src/components/TDatepicker.ts b/src/components/TDatepicker.ts index a3d364e..1b82636 100644 --- a/src/components/TDatepicker.ts +++ b/src/components/TDatepicker.ts @@ -570,7 +570,7 @@ const TDatepicker = HtmlInput.extend({ focus: () => void }; - (this.$refs.timePicker as TimePicker).focus(); + (this.$refs.timePicker as TimePicker)?.focus(); }, inputDateHandler(date: Date): void { this.dateWithoutTime = date;