From 9e375e67126afe26e43170c2472b8326918d1810 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Mon, 4 Jun 2018 09:52:20 +0200 Subject: [PATCH] Focus only if component has input (3769) --- src/components/date-picker/picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 7a5f54c..4f1b7b1 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -668,7 +668,7 @@ this.reset(); }, focus() { - this.$refs.input.focus(); + this.$refs.input && this.$refs.input.focus(); } }, watch: { -- libgit2 0.21.4