From 08e360b01b78a675b6a65de685d199e961dad2e8 Mon Sep 17 00:00:00 2001 From: Fikkri Prasetya Date: Tue, 14 Jun 2022 12:00:42 +0700 Subject: [PATCH] Fixing issues TDatePicker focus error Fixing issues TDatePicker focus error when Timepicker not found --- src/components/TDatepicker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;